/usr/bin/xbuilder-simple is in xbuilder 1.0.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | #!/bin/sh
here=`pwd`
timestamp=`date +%Y%m%d-%H%M`
configfile=/etc/xbuilder.cfg
if [ -f $configfile ]; then
. $configfile
else
echo "config in $configfile not found - exiting"
exit 1
fi
mkdir -p $here/build/${buildmethod} $here/logs/${buildmethod}/${timestamp}
dopdebuild()
{
echo "Using pdebuild-cross"
cd $here/build/pdebuild && apt-get source $sourcepackage
( cd $here/build/pdebuild/${sourcepackage}-* && pdebuild-cross > $here/logs/pdebuild/${timestamp}/${package}.log 2>&1 )
}
doxdeb()
{
echo "Using xdeb"
cd $here/build/xdeb
# tidy up any -cross packages except the base toolchain stuff
# for a really clean build get rid of the local package cache too
# rm -rf *
echo "Removing previously-installed -cross packages"
rm -f *armel-cross* *armel.changes
rm -f pkgcache.apt
dpkg --get-selections | grep -E "$arch-cross.*install" | grep -E -v "(libgcc1|linux-libc|libc6|libstdc++.*|libgomp1)(-dev)*-$arch-cross" | awk '{ print $1}' | sudo xargs apt-get -qq -y remove
echo "Doing the build. Log in $here/logs/xdeb/$package-$timestamp.log"
xdeb --only-explicit -a $arch --prefer-apt --apt-source --debug --force-rebuild $sourcepackage > $here/logs/xdeb/${timestamp}/${package}.log 2>&1
}
parselog()
{
#echo "Parsing build log for build status"
/usr/lib/xbuilder/build-status-single $here/logs/xdeb/${timestamp}/${package}.log
}
for package in `cat $buildlist`
do
sourcepackage=`grep-aptavail -X -FSource -FPackage $package -s Source:Package | awk '{ print $2 }' | uniq`
if [ -z $sourcepackage ];
then
echo "No source found corresponding to $package, skipping"
continue
else
echo "*********************************************"
echo "********* building $package from $sourcepackage"
echo "*********************************************"
do$buildmethod
parselog
fi
done
|