2016-12-02 11:02:01 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
VERSION_STRING=$1
|
|
|
|
VERSION_ARRAY=( ${VERSION_STRING//./ } )
|
|
|
|
VERSION_MAJOR=${VERSION_ARRAY[0]}
|
|
|
|
VERSION_MINOR=${VERSION_ARRAY[1]}
|
|
|
|
VERSION_PATCH=${VERSION_ARRAY[2]}
|
|
|
|
|
2016-12-09 08:56:35 +00:00
|
|
|
# Update the version number git-lfs is reporting.
|
2016-12-02 11:02:01 +00:00
|
|
|
sed -i "s,\(Version = \"\).*\(\"\),\1$VERSION_STRING\2," config/version.go
|
2016-12-09 08:56:35 +00:00
|
|
|
|
|
|
|
# Update the version number in the RPM package.
|
2016-12-02 11:02:01 +00:00
|
|
|
sed -i "s,\(Version:[[:space:]]*\).*,\1$VERSION_STRING," rpm/SPECS/git-lfs.spec
|
|
|
|
|
2016-12-09 08:56:35 +00:00
|
|
|
# Update the version numbers in the Windows installer.
|
2016-12-02 11:02:01 +00:00
|
|
|
sed -i "s,\(FILEVERSION \).*,\1$VERSION_MAJOR\,$VERSION_MINOR\,$VERSION_PATCH\,0," script/windows-installer/resources.rc
|
|
|
|
sed -i "s,\([[:space:]]*VALUE \"ProductVersion\"\, \"\).*\(\\\\0\"\),\1$VERSION_STRING\2," script/windows-installer/resources.rc
|