[rkward-cvs] SF.net SVN: rkward-code:[4860] trunk/rkward/scripts/make_debian_package.sh

tfry at users.sf.net tfry at users.sf.net
Tue Sep 30 13:37:56 UTC 2014


Revision: 4860
          http://sourceforge.net/p/rkward/code/4860
Author:   tfry
Date:     2014-09-30 13:37:53 +0000 (Tue, 30 Sep 2014)
Log Message:
-----------
Add script to automate (most of) debian package building

Added Paths:
-----------
    trunk/rkward/scripts/make_debian_package.sh

Added: trunk/rkward/scripts/make_debian_package.sh
===================================================================
--- trunk/rkward/scripts/make_debian_package.sh	                        (rev 0)
+++ trunk/rkward/scripts/make_debian_package.sh	2014-09-30 13:37:53 UTC (rev 4860)
@@ -0,0 +1,28 @@
+#!/bin/bash
+cd `dirname $0`/..
+BASEDIR=`pwd`
+VERSION=`${BASEDIR}/scripts/getversion.sh ${1}`
+DEBTEMPDIR=${BASEDIR}/debiantemp
+rm -rf ${DEBTEMPDIR}
+mkdir ${DEBTEMPDIR}
+
+if [ -z "`head -n 1 ${BASEDIR}/debian/changelog | grep "rkward (${VERSION}-"`" ]; then
+  echo "Version mismatch! Adjust ${BASEDIR}/debian/changelog, first."
+  exit 1
+fi
+
+# create source snapshot
+if [ ! -f ${BASEDIR}/rkward-$VERSION.tar.gz ]; then
+  cd ${BASEDIR}
+  ${BASEDIR}/scripts/makedist.sh $VERSION
+fi
+
+cp ${BASEDIR}/rkward-$VERSION.tar.gz $DEBTEMPDIR/rkward_$VERSION.orig.tar.gz
+cd $DEBTEMPDIR
+tar -xzf rkward_$VERSION.orig.tar.gz
+cd rkward-$VERSION
+cp -a ${BASEDIR}/debian .
+dpkg-buildpackage -rfakeroot
+
+cd $DEBTEMPDIR
+LINTIAN_PROFILE=debian lintian rkward_$VERSION-*.changes


Property changes on: trunk/rkward/scripts/make_debian_package.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property




More information about the rkward-tracker mailing list