forked from ofeefee/fluttercoin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-linux.sh
executable file
·18 lines (18 loc) · 1017 Bytes
/
build-linux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
#Script expects src to be in fluttercoin and gitian in a directory called gitian and both in the same directory
#somedir\fluttercoin
#somedir\gitian
#there is no errorchecking to see if gitian builds or not, if it works there will be two zip files in gitian directory
#with the programs in them.
major=`grep DISPLAY_VERSION_MAJOR src/version.h | awk {'print $3'} | head -n1`
minor=`grep DISPLAY_VERSION_MINOR src/version.h | awk {'print $3'} | head -n1`
revision=`grep DISPLAY_VERSION_REVISION src/version.h | awk {'print $3'} | head -n1`
build=`grep DISPLAY_VERSION_BUILD src/version.h | awk {'print $3'} | head -n1`
cd ..
rm gitian/fluttercoin-??-linux*
rm gitian/inputs/fluttercoin-src.zip
zip -vr gitian/inputs/fluttercoin-src.zip fluttercoin
cd gitian
time sudo bin/gbuild ../fluttercoin/contrib/gitian-descriptors/gitian-linux.yml
zip -jv fluttercoin-32-linux-v$major.$minor.$revision.$build.zip build/out/bin/32/*
zip -jv fluttercoin-64-linux-v$major.$minor.$revision.$build.zip build/out/bin/64/*