Skip to content

Instantly share code, notes, and snippets.

@jef-n
Created May 1, 2012 17:22
Show Gist options
  • Save jef-n/2569800 to your computer and use it in GitHub Desktop.
Save jef-n/2569800 to your computer and use it in GitHub Desktop.
export [email protected]
export DEBFULLNAME="Jürgen E. Fischer"
export PPA=${1:-qgis-unstable-ubuntugis-jef}
export T=$(mktemp)
cp debian/changelog $T
trap "cp $T debian/changelog && rm -f $T" EXIT
DISTS=${DISTS:-"lucid maverick natty oneiric precise"}
O=${O:-"-sa"}
for dist in $DISTS; do
if [ -f $T ]; then
cp -a $T debian/changelog
fi
dch -p --force-distribution -D $dist -l "~$dist" "launchpad build for $dist"
head debian/changelog
dpkg-buildpackage -k5E444875 --source-option="-sp" $O -S -I.git -i\.git
O="-sd"
debrelease --dput -S $PPA
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment