diff --git a/script/update-version b/script/update-version deleted file mode 100755 index 1742ff88..00000000 --- a/script/update-version +++ /dev/null @@ -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