[rkward-cvs] SF.net SVN: rkward:[2844] trunk/rkward/makeppa_upload.sh
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Sun Apr 25 12:19:56 UTC 2010
Revision: 2844
http://rkward.svn.sourceforge.net/rkward/?rev=2844&view=rev
Author: tfry
Date: 2010-04-25 12:19:56 +0000 (Sun, 25 Apr 2010)
Log Message:
-----------
Add script to upload to launchpad PPA
Added Paths:
-----------
trunk/rkward/makeppa_upload.sh
Added: trunk/rkward/makeppa_upload.sh
===================================================================
--- trunk/rkward/makeppa_upload.sh (rev 0)
+++ trunk/rkward/makeppa_upload.sh 2010-04-25 12:19:56 UTC (rev 2844)
@@ -0,0 +1,66 @@
+#!/bin/bash
+
+## begin: These may need adjusting!
+TARGETS="lucid karmic jaunty intrepid hardy"
+PPAVERSIONSTRING="experimental1ppa1"
+PPAID="rkward-devel"
+AUTHOR="Thomas Friedrichsmeier <tfry at users.sourceforge.net>"
+## end: These may need adjusting!
+
+VERSION=${1}
+cd `dirname $0`
+BASEDIR=`pwd`
+PPATEMPDIR=$BASEDIR/ppatemp
+mkdir $PPATEMPDIR
+
+# first create source snapshot
+${BASEDIR}/makedist.sh $VERSION
+cp ${BASEDIR}/rkward-$VERSION.tar.gz $PPATEMPDIR/rkward_$VERSION.orig.tar.gz
+
+function doSourceUpload {
+ TARGET=${1}
+ PACKAGEVERSION="${VERSION}-1${PPAVERSIONSTRING}~${TARGET}"
+
+ echo "----------------------"
+ echo "Now packaging: ${PACKAGEVERSION}"
+ echo "----------------------"
+
+ # unpack
+ cd $PPATEMPDIR
+ tar -xzf rkward_$VERSION.orig.tar.gz
+ PPASOURCEDIR=`pwd`/rkward-$VERSION/
+ cp -a $BASEDIR/debian $PPASOURCEDIR
+
+ # prepare changelog
+ cd $PPASOURCEDIR/debian
+ mv changelog changelog_old
+ echo "rkward (${PACKAGEVERSION}) ${TARGET}; urgency=low" > changelog
+ echo " * new upstream development release" >> changelog
+ echo -n " -- ${AUTHOR} " >> changelog
+ date -R >> changelog
+ echo "" >> changelog
+ cat changelog_old >> changelog
+ rm changelog_old
+
+ # build source package
+ cd $PPASOURCEDIR
+ dpkg-buildpackage -S
+
+ # upload
+ cd $PPATEMPDIR
+ echo "[rkward-devel-scripted]" > dput.cf
+ echo "fqdn = ppa.launchpad.net" >> dput.cf
+ echo "method = ftp" >> dput.cf
+ echo "incoming = ~rkward-devel/${PPAID}/ubuntu/" >> dput.cf
+ echo "login = anonymous" >> dput.cf
+ echo "allow_unsigned_uploads = 0" >> dput.cf
+
+ dput --config ${PPATEMPDIR}/dput.cf rkward-devel-scripted rkward_${PACKAGEVERSION}_source.changes
+ rm -rf rkward_${PACKAGEVERSION}*
+ rm -rf $PPASOURCEDIR
+}
+
+for TARGET in ${TARGETS}
+do
+ doSourceUpload ${TARGET}
+done
Property changes on: trunk/rkward/makeppa_upload.sh
___________________________________________________________________
Added: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list