Created
September 14, 2020 12:20
-
-
Save jackcoble/305960aa73eb1ea87e88bf0125926ec0 to your computer and use it in GitHub Desktop.
Coin builder script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PLATFORM=x86_64-pc-linux-gnu | |
DIRMAIN=~/code | |
DIRPRJ=${DIRMAIN}/dragon | |
DIRDEPLOY=${DIRMAIN}/feirm-${PLATFORM}-install | |
STRIP=strip | |
ZIPPLAT=linux-ubuntu18 | |
mkdir -p ${DIRDEPLOY} | |
rm -r -f ${DIRDEPLOY}/* | |
cd ${DIRPRJ} | |
git checkout master | |
git pull | |
cd depends | |
make HOST=${PLATFORM} -j4 | |
cd .. | |
make distclean | |
VERSION="`git describe --tags --abbrev=0`" | |
sh autogen.sh \ | |
&& CONFIG_SITE=${DIRPRJ}/depends/${PLATFORM}/share/config.site ./configure \ | |
--prefix=/usr \ | |
--disable-bench \ | |
--disable-tests \ | |
--disable-gui-tests \ | |
&& make -j4 \ | |
&& make DESTDIR=${DIRDEPLOY} install \ | |
&& cd ${DIRDEPLOY} \ | |
&& mv usr/bin/feirm* . \ | |
&& rm -r -f usr/ \ | |
&& ${STRIP} * \ | |
&& tar -czvf "feirm-${VERSION}-${ZIPPLAT}.tar.gz" * \ | |
&& ls -alh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment