File tree 5 files changed +10
-3
lines changed
5 files changed +10
-3
lines changed Original file line number Diff line number Diff line change
1
+ .commit_hash.txt
2
+ .prerelease.txt
3
+
1
4
# Compiled Object files
2
5
* .slo
3
6
* .lo
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ if (EXISTS ${ETH_SOURCE_DIR}/prerelease.txt)
26
26
string (STRIP "${SOL_VERSION_PRERELEASE} " SOL_VERSION_PRERELEASE)
27
27
else ()
28
28
string (TIMESTAMP SOL_VERSION_PRERELEASE "develop.%Y.%m.%d" UTC)
29
+ string (REPLACE .0 . SOL_VERSION_PRERELEASE "${SOL_VERSION_PRERELEASE} " )
29
30
endif ()
30
31
31
32
if (EXISTS ${ETH_SOURCE_DIR} /commit_hash.txt)
Original file line number Diff line number Diff line change 29
29
set -e
30
30
31
31
if [[ " $OSTYPE " != " darwin" * ]]; then
32
- date -u +" nightly.%Y.%m.%d" > prerelease.txt
32
+ date -u +" nightly.%Y.%- m.%- d" > prerelease.txt
33
33
./scripts/travis-emscripten/install_deps.sh
34
34
docker run -v $( pwd) :/src trzeci/emscripten:sdk-tag-1.35.4-64bit ./scripts/travis-emscripten/build_emscripten.sh
35
35
fi
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ cd solc
54
54
version=` grep -oP " PROJECT_VERSION \" ?\K[0-9.]+(?=\" )" ? CMakeLists.txt`
55
55
commithash=` git rev-parse --short HEAD`
56
56
committimestamp=` git show --format=%ci HEAD | head -n 1`
57
- commitdate=` git show --format=%ci HEAD | head -n 1 | cut - -b1-10`
57
+ commitdate=` git show --format=%ci HEAD | head -n 1 | cut - -b1-10 | sed -e ' s/-0?/./ ' | sed -e ' s/-0?/./ ' `
58
58
59
59
echo " $commithash " > commit_hash.txt
60
60
if [ $branch = develop ]
Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ VER=$(cat CMakeLists.txt | grep 'set(PROJECT_VERSION' | sed -e 's/.*set(PROJECT_
34
34
test -n " $VER "
35
35
VER=" v$VER "
36
36
COMMIT=$( git rev-parse --short HEAD)
37
- DATE=$( date --date=" $( git log -1 --date=iso --format=%ad HEAD) " --utc +%Y.%m.%d)
37
+ DATE=$( date --date=" $( git log -1 --date=iso --format=%ad HEAD) " --utc +%Y.%-m.%-d)
38
+
39
+ # remove leading zeros in components - they are not semver-compatible
40
+ COMMIT=$( echo " $COMMIT " | sed -e ' s/^0*//' )
38
41
39
42
ENCRYPTED_KEY_VAR=" encrypted_${ENCRYPTION_LABEL} _key"
40
43
ENCRYPTED_IV_VAR=" encrypted_${ENCRYPTION_LABEL} _iv"
You can’t perform that action at this time.
0 commit comments