From 29ecc6fe31d56feaf5d5a04e84b12138baa0d1e7 Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 9 Sep 2016 13:59:22 +0200 Subject: Remove leading zeroes in prerelease components. --- scripts/release_ppa.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/release_ppa.sh') diff --git a/scripts/release_ppa.sh b/scripts/release_ppa.sh index 8e9dc282..23c374e1 100755 --- a/scripts/release_ppa.sh +++ b/scripts/release_ppa.sh @@ -54,7 +54,7 @@ cd solc version=`grep -oP "PROJECT_VERSION \"?\K[0-9.]+(?=\")"? CMakeLists.txt` commithash=`git rev-parse --short HEAD` committimestamp=`git show --format=%ci HEAD | head -n 1` -commitdate=`git show --format=%ci HEAD | head -n 1 | cut - -b1-10` +commitdate=`git show --format=%ci HEAD | head -n 1 | cut - -b1-10 | sed -e 's/-0?/./' | sed -e 's/-0?/./'` echo "$commithash" > commit_hash.txt if [ $branch = develop ] -- cgit v1.2.3 From af86bfb07df801d4b9b2d9782f3a6c764a2b9859 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 15 Sep 2016 01:47:16 +0200 Subject: Force commit hash to 8 digits. --- scripts/release_ppa.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/release_ppa.sh') diff --git a/scripts/release_ppa.sh b/scripts/release_ppa.sh index 23c374e1..6a30faf5 100755 --- a/scripts/release_ppa.sh +++ b/scripts/release_ppa.sh @@ -52,7 +52,7 @@ mv solidity solc # Determine version cd solc version=`grep -oP "PROJECT_VERSION \"?\K[0-9.]+(?=\")"? CMakeLists.txt` -commithash=`git rev-parse --short HEAD` +commithash=`git rev-parse --short=8 HEAD` committimestamp=`git show --format=%ci HEAD | head -n 1` commitdate=`git show --format=%ci HEAD | head -n 1 | cut - -b1-10 | sed -e 's/-0?/./' | sed -e 's/-0?/./'` -- cgit v1.2.3