Commit e5248a7b authored by Wookey's avatar Wookey

Put the handy script for building into git so everyone has access.

Not actually part of the package.
parent e65a73d0
# This is just a convenience script - not part of the package
# Use this from outside a configured unstable chroot.
# needs git-buildpackage and sbuild (outside the chroot)
# and lsb-release inside the chroot
#use --git-debian-branch=foo if not building from master
mv ../cross-binutils/* ../cross-binutils.old/
# regenerate the control file in case anything changed and we forgot to do it
# this must be done in unstable to allow for dpkg-architecture changes
# want to run in chroot so that dpkg-arch patterns match
#schroot -c $chroot -- debian/rules control
#trying to use schroot in this command doesn't seem to work
#--git-prebuild="schroot -c $chroot -- debian/rules control"
if git-buildpackage --git-tag --git-retag --git-prebuild="schroot -c $chroot -- debian/rules control" \
--git-force-create --git-export-dir=../cross-binutils -S -uc -us; then
pushd ../../cross-binutils
ver=$(head -n1 ../git/debian/changelog | awk '{ print $2 }' | sed -e 's/[()]//g')
sbuild -d unstable -c $chroot -A -s --force-orig-source cross-binutils_${ver}.dsc
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment