Created
September 4, 2012 13:49
-
-
Save shadeslayer/3621314 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# Automation script for KDE Telepathy | |
PACKAGE_LIST=" | |
ktp-contact-applet | |
ktp-accounts-kcm | |
ktp-approver | |
ktp-auth-handler | |
ktp-call-ui | |
ktp-common-internals | |
ktp-contact-list | |
ktp-contact-runner | |
ktp-filetransfer-handler | |
ktp-kded-integration-module | |
ktp-presence-applet | |
ktp-send-file | |
ktp-text-ui | |
telepathy-logger-qt | |
telepathy-qt" | |
for package in $PACKAGE_LIST | |
do | |
backportpackage -d precise -u ${1} -y -w ./tmp/ ${package} & | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# Automation script for KDE Telepathy | |
PACKAGE_LIST=" | |
ktp-contact-applet | |
ktp-accounts-kcm | |
ktp-approver | |
ktp-auth-handler | |
ktp-call-ui | |
ktp-common-internals | |
ktp-contact-list | |
ktp-contact-runner | |
ktp-filetransfer-handler | |
ktp-kded-integration-module | |
ktp-presence-applet | |
ktp-send-file | |
ktp-text-ui | |
telepathy-logger-qt" | |
for package in $PACKAGE_LIST | |
do | |
mkdir $package | |
cd $package | |
pull-lp-source $package | |
cd $package-* | |
if [ -e debian/watch ] | |
then | |
uscan --verbose --download-version $1 | |
else | |
echo "WARNING : Watch file for $package NOT found. Trying to add. Please reflect this in the changelog" | |
echo "version=3\n\nftp://ftp.kde.org/pub/kde/unstable/kde-telepathy/([\d.]+)/src/${package}-([\d.]+).tar.bz2">debian/watch | |
uscan --verbose --download-version $1 | |
fi | |
# A bit of a hack really | |
uupdate `ls -l ../ | grep '^l' | awk '{ print $9 }'` | |
cd ../$package-$1 | |
if [ "$package" != "ktp-common-internals" ]; then | |
sed -i "s/libktpcommoninternalsprivate-dev (>= .*)/libktpcommoninternalsprivate-dev (>= $1)/" debian/control | |
fi | |
# This is fugly, but works for first uploads | |
sed -i "s/$1-0ubuntu1/$1-0ubuntu1~ppa1/" debian/changelog | |
sed -i "s/UNRELEASED/quantal/" debian/changelog | |
debuild -S -sa | |
cd ../../ | |
ln -s ${package}/${package}_${1}-0ubuntu1~ppa1_source.changes -t ./ | |
ln -s ${package}/${package}_${1}-0ubuntu1~ppa1.dsc -t ./ | |
ln -s ${package}/${package}_${1}.orig.tar.bz2 -t ./ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment