Mercurial > hg
view contrib/dockerdeb @ 25494:e8eb3ecdaa0c
perf: support -T for every perf commands
We are already building a formatter, we can now pass it options the official
way.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 09 Jun 2015 15:18:47 -0700 |
parents | 4c4d0012db4f |
children | 05306b9359d3 |
line wrap: on
line source
#!/bin/bash -eu . $(dirname $0)/dockerlib.sh . $(dirname $0)/packagelib.sh BUILDDIR=$(dirname $0) export ROOTDIR=$(cd $BUILDDIR/..; pwd) checkdocker PLATFORM="debian-$1" shift # extra params are passed to build process initcontainer $PLATFORM DEBBUILDDIR=$ROOTDIR/packages/$PLATFORM contrib/builddeb --debbuilddir $DEBBUILDDIR/staged --prepare DSHARED=/mnt/shared/ if [ $(uname) = "Darwin" ] ; then $DOCKER run -u $DBUILDUSER --rm -v $DEBBUILDDIR:$DSHARED -v $PWD:/mnt/hg $CONTAINER \ sh -c "cd /mnt/hg && make clean && make local" fi $DOCKER run -u $DBUILDUSER --rm -v $DEBBUILDDIR:$DSHARED -v $PWD:/mnt/hg $CONTAINER \ sh -c "cd /mnt/hg && make PREFIX=$DSHARED/staged/usr install" $DOCKER run -u $DBUILDUSER --rm -v $DEBBUILDDIR:$DSHARED $CONTAINER \ dpkg-deb --build $DSHARED/staged if [ $(uname) = "Darwin" ] ; then $DOCKER run -u $DBUILDUSER --rm -v $DEBBUILDDIR:$DSHARED -v $PWD:/mnt/hg $CONTAINER \ sh -c "cd /mnt/hg && make clean" fi gethgversion rm -r $DEBBUILDDIR/staged mv $DEBBUILDDIR/staged.deb $DEBBUILDDIR/mercurial-$version-$release.deb echo echo "Build complete - results can be found in $DEBBUILDDIR"