Gav Wood
11 years ago
1 changed files with 19 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||||
|
#!/bin/bash |
||||
|
|
||||
|
opwd="$PWD" |
||||
|
br=$(git branch | grep '\*' | sed 's/^..//') |
||||
|
|
||||
|
n=cpp-ethereum-src-$(date "+%Y%m%d%H%M%S" --date="1970-01-01 $(git log -1 --date=short --pretty=format:%ct) sec GMT")-$(grep "EthVersion = " libethential/Common.cpp | sed 's/^[^"]*"//' | sed 's/".*$//')-$(git rev-parse HEAD | cut -c1-6) |
||||
|
|
||||
|
cd /tmp |
||||
|
git clone "$opwd" $n |
||||
|
cd $n |
||||
|
git checkout $br |
||||
|
rm -f package.sh |
||||
|
cd .. |
||||
|
tar c $n | bzip2 -- > $opwd/../${n}.tar.bz2 |
||||
|
rm -rf $n |
||||
|
cd $opwd |
||||
|
|
||||
|
echo "SHA1(${n}.tar.bz2) = $(shasum $opwd/../${n}.tar.bz2 | cut -d' ' -f 1)" |
||||
|
|
Loading…
Reference in new issue