diff --git a/contrib/devtools/gen-linux-binary-release.sh b/contrib/devtools/gen-linux-binary-release.sh index 07e7af868..6d03d656d 100755 --- a/contrib/devtools/gen-linux-binary-release.sh +++ b/contrib/devtools/gen-linux-binary-release.sh @@ -5,8 +5,10 @@ set -e set -x -#TODO: autodect version number, error handling -FILE="hush-3.6.2-linux-amd64.tar" +#hardcode and uncomment if hushd is not running on this machine +#VERSION=3.6.3 +VERSION=$(./src/hushd --version|grep version|cut -d' ' -f4|cut -d- -f1|sed 's/v//g') +FILE="hush-$VERSION-linux-amd64.tar" TIME=$(perl -e 'print time') mv build build.$TIME