script: remove unused script/update-version
This commit is contained in:
parent
58a0a161ee
commit
3a1a3c12c2
@ -1,21 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
VERSION_STRING=$1
|
|
||||||
VERSION_ARRAY=( ${VERSION_STRING//./ } )
|
|
||||||
VERSION_MAJOR=${VERSION_ARRAY[0]}
|
|
||||||
VERSION_MINOR=${VERSION_ARRAY[1]}
|
|
||||||
VERSION_PATCH=${VERSION_ARRAY[2]:-0}
|
|
||||||
VERSION_BUILD=${VERSION_ARRAY[3]:-0}
|
|
||||||
|
|
||||||
# Update the version number git-lfs is reporting.
|
|
||||||
sed -i "s,\(Version = \"\).*\(\"\),\1$VERSION_STRING\2," config/version.go
|
|
||||||
|
|
||||||
# Update the version number in the RPM package.
|
|
||||||
sed -i "s,\(Version:[[:space:]]*\).*,\1$VERSION_STRING," rpm/SPECS/git-lfs.spec
|
|
||||||
|
|
||||||
# Update the version numbers in the Windows installer.
|
|
||||||
sed -i "s,\(\"Major\": \).*\,,\1$VERSION_MAJOR\,," versioninfo.json
|
|
||||||
sed -i "s,\(\"Minor\": \).*\,,\1$VERSION_MINOR\,," versioninfo.json
|
|
||||||
sed -i "s,\(\"Patch\": \).*\,,\1$VERSION_PATCH\,," versioninfo.json
|
|
||||||
sed -i "s,\(\"Build\": \).*,\1$VERSION_BUILD," versioninfo.json
|
|
||||||
sed -i "s,\(\"ProductVersion\": \"\).*\(\"\),\1$VERSION_STRING\2," versioninfo.json
|
|
Loading…
Reference in New Issue
Block a user