Put binaries into a properly named subdirectory, fixes #311
This commit is contained in:
@@ -8,7 +8,8 @@ set -x
|
|||||||
#hardcode and uncomment if hushd is not running on this machine
|
#hardcode and uncomment if hushd is not running on this machine
|
||||||
#VERSION=3.6.3
|
#VERSION=3.6.3
|
||||||
VERSION=$(./src/hushd --version|grep version|cut -d' ' -f4|cut -d- -f1|sed 's/v//g')
|
VERSION=$(./src/hushd --version|grep version|cut -d' ' -f4|cut -d- -f1|sed 's/v//g')
|
||||||
FILE="hush-$VERSION-linux-amd64.tar"
|
DIR="hush-$VERSION-linux-amd64"
|
||||||
|
FILE="$DIR.tar"
|
||||||
TIME=$(perl -e 'print time')
|
TIME=$(perl -e 'print time')
|
||||||
|
|
||||||
if [ -d "build" ]
|
if [ -d "build" ]
|
||||||
@@ -17,14 +18,17 @@ then
|
|||||||
echo "Moved existing build/ dir to build.$TIME"
|
echo "Moved existing build/ dir to build.$TIME"
|
||||||
fi
|
fi
|
||||||
mkdir build
|
mkdir build
|
||||||
echo "Created new build/ dir"
|
BUILD="build/$DIR"
|
||||||
cp contrib/asmap/asmap.dat build/
|
mkdir $BUILD
|
||||||
cp sapling*.params build/
|
echo "Created new build dir $BUILD"
|
||||||
|
cp contrib/asmap/asmap.dat $BUILD
|
||||||
|
cp sapling*.params $BUILD
|
||||||
cd src
|
cd src
|
||||||
cp hushd hush-cli hush-tx hush-smart-chain dragonx-cli dragonxd ../build
|
cp hushd hush-cli hush-tx hush-smart-chain dragonx-cli dragonxd ../$BUILD
|
||||||
cd ../build
|
cd ../$BUILD
|
||||||
strip hushd hush-cli hush-tx
|
strip hushd hush-cli hush-tx
|
||||||
tar -f $FILE -c *
|
cd ..
|
||||||
|
tar -f $FILE -c hush-$VERSION-linux-amd64/*
|
||||||
gzip -9 $FILE
|
gzip -9 $FILE
|
||||||
sha256sum *.gz
|
sha256sum *.gz
|
||||||
du -sh *.gz
|
du -sh *.gz
|
||||||
|
|||||||
Reference in New Issue
Block a user