gitian: make tarballs deterministic and nuke .la files from build output

This commit is contained in:
Cory Fields 2014-11-19 21:46:40 -05:00
parent c54d647a92
commit 246659aff1
3 changed files with 30 additions and 0 deletions

View File

@ -75,6 +75,13 @@ script: |
make dist
DISTNAME=`echo bitcoin-*.tar.gz`
# Correct tar file order
mkdir -p temp
pushd temp
tar xf ../$DISTNAME
find bitcoin-* | sort | tar --no-recursion -c -T - | gzip -9n > ../$DISTNAME
popd
ORIGPATH="$PATH"
# Extract the release tarball into a dir for each host and build
for i in ${HOSTS}; do
@ -92,3 +99,6 @@ script: |
mv $DISTNAME $OUTDIR/src
mv ${OUTDIR}/x86_64-* ${OUTDIR}/64
mv ${OUTDIR}/i686-* ${OUTDIR}/32
# Delete unwanted stuff
find ${OUTDIR} -name "lib*.la" -delete

View File

@ -85,6 +85,13 @@ script: |
make dist
DISTNAME=`echo bitcoin-*.tar.gz`
# Correct tar file order
mkdir -p temp
pushd temp
tar xf ../$DISTNAME
find bitcoin-* | sort | tar --no-recursion -c -T - | gzip -9n > ../$DISTNAME
popd
ORIGPATH="$PATH"
# Extract the release tarball into a dir for each host and build
for i in ${HOSTS}; do
@ -102,3 +109,6 @@ script: |
done
mkdir -p $OUTDIR/src
mv $DISTNAME $OUTDIR/src
# Delete unwanted stuff
find ${OUTDIR} -name "lib*.la" -delete

View File

@ -77,6 +77,13 @@ script: |
make dist
DISTNAME=`echo bitcoin-*.tar.gz`
# Correct tar file order
mkdir -p temp
pushd temp
tar xf ../$DISTNAME
find bitcoin-* | sort | tar --no-recursion -c -T - | gzip -9n > ../$DISTNAME
popd
ORIGPATH="$PATH"
# Extract the release tarball into a dir for each host and build
for i in ${HOSTS}; do
@ -96,3 +103,6 @@ script: |
mv $DISTNAME $OUTDIR/src
mv ${OUTDIR}/x86_64-* ${OUTDIR}/64
mv ${OUTDIR}/i686-* ${OUTDIR}/32
# Delete unwanted stuff
find ${OUTDIR} -name "lib*.la" -delete