aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-01-09 19:14:01 +0800
committerchriseth <c@ethdev.com>2017-01-09 19:14:01 +0800
commit1cecaab9b68ce627185dca3efe793f4af949ad2b (patch)
treee627152f5bc105bcbc26217beaad3d20bd99e669
parente45510d02ff0c543038802359d4920b3e500d517 (diff)
downloaddexon-solidity-1cecaab9b68ce627185dca3efe793f4af949ad2b.tar
dexon-solidity-1cecaab9b68ce627185dca3efe793f4af949ad2b.tar.gz
dexon-solidity-1cecaab9b68ce627185dca3efe793f4af949ad2b.tar.bz2
dexon-solidity-1cecaab9b68ce627185dca3efe793f4af949ad2b.tar.lz
dexon-solidity-1cecaab9b68ce627185dca3efe793f4af949ad2b.tar.xz
dexon-solidity-1cecaab9b68ce627185dca3efe793f4af949ad2b.tar.zst
dexon-solidity-1cecaab9b68ce627185dca3efe793f4af949ad2b.zip
Replace `` by $().
-rwxr-xr-xscripts/create_source_tarball.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/create_source_tarball.sh b/scripts/create_source_tarball.sh
index 350f6b4d..1f78e12c 100755
--- a/scripts/create_source_tarball.sh
+++ b/scripts/create_source_tarball.sh
@@ -6,10 +6,9 @@ set -e
REPO_ROOT="$(dirname "$0")"/..
(
cd "$REPO_ROOT"
- version=`grep -oP "PROJECT_VERSION \"?\K[0-9.]+(?=\")"? CMakeLists.txt`
- 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?/./'`
+ version=$(grep -oP "PROJECT_VERSION \"?\K[0-9.]+(?=\")"? CMakeLists.txt)
+ commithash=$(git rev-parse --short=8 HEAD)
+ commitdate=$(git show --format=%ci HEAD | head -n 1 | cut - -b1-10 | sed -e 's/-0?/./' | sed -e 's/-0?/./')
# file exists and has zero size -> not a prerelease
if [ -e prerelease.txt -a ! -s prerelease.txt ]