[Tux4kids-commits] r913 - tuxmath/people/holger
holger at alioth.debian.org
holger at alioth.debian.org
Mon Mar 2 15:00:57 UTC 2009
Author: holger
Date: 2009-03-02 15:00:56 +0000 (Mon, 02 Mar 2009)
New Revision: 913
Removed:
tuxmath/people/holger/make_debian_packages
Log:
not used anymore
Deleted: tuxmath/people/holger/make_debian_packages
===================================================================
--- tuxmath/people/holger/make_debian_packages 2009-03-02 14:44:18 UTC (rev 912)
+++ tuxmath/people/holger/make_debian_packages 2009-03-02 15:00:56 UTC (rev 913)
@@ -1,100 +0,0 @@
-#!/bin/bash -x
-
-# copyright 2006-2007 Holger Levsen
-# released under the GPL version2
-#
-# attack of the ugly scripts! i think i want to learn about svn-buildpackage next...
-
-which fakeroot > /dev/null || {
- echo error: please install the fakeroot package
- exit 1
-}
-which dpkg-source > /dev/null || {
- echo error: please install the dpkg-dev package
- exit 1
-}
-which debdiff > /dev/null || {
- echo error: please install the devscripts package
- exit 1
-}
-
-if [ ! $1 ] ; then echo "upstream version missing, e.g. 0.97"; exit 1 ; fi
-if [ ! $2 ] ; then echo "debian reversion missing, e.g. 1"; exit 1 ; fi
-
-mkdir -p results
-cd results
-
-#
-# checkout the code from svn if no local tuxmath_${1}.orig.tar.gz exists
-# (this allows local modifications to the debian directory)
-#
-if [ -e ./tuxmath_${1}.orig.tar.gz ] ; then
- #
- # use local files
- #
- tar xzvf tuxmath_${1}.orig.tar.gz
-
- cp -av ../tuxmath/debian ./tuxmath-$1/
-
- # why?? i use -I.svn below...
- find ./tuxmath-$1/ -name .svn -exec rm -rf \{\} \;
-else
- #
- # checkout and prepare source from svn
- #
- svn export svn://svn.debian.org/svn/tux4kids/tuxmath/trunk ./tuxmath-$1
- #fake begin
- #mkdir ./tuxmath-$1
- #cd ./tuxmath-$1
- #tar xf ../fake.tar
- #cd ..
- #fake end
-
- tar czvf tuxmath_${1}.orig.tar.gz ./tuxmath-$1
-
- cd tuxmath-$1
- svn export svn://svn.debian.org/svn/tux4kids/tuxmath/people/holger/tuxmath/debian
- cd ..
-fi
-
-#
-# build source packages
-#
-
-cd ./tuxmath-$1
-nice dpkg-buildpackage -rfakeroot -I.svn -i\/.svn\/ -uc -us -S
-cd ..
-rm ./tuxmath-$1 -r
-
-# temp. for developing - use pbuilder for real
-# (and make this conditional)
-dpkg-source -x tuxmath_$1-$2.dsc
-cd tuxmath-$1
-nice dpkg-buildpackage -uc -us -rfakeroot
-# get previous version
-cd debian
-PREVIOUS_VERSION=`egrep '^[[:alnum:]]' changelog | sed -e 's/.*(\(.*\)).*/\1/' | head -n2 | tail -1`
-cd ..
-cd ..
-
-rm ./tuxmath-$1 -r
-
-echo
-for i in tuxmath_$1-$2.dsc tuxmath_$1-$2_`dpkg-architecture -qDEB_BUILD_ARCH`.deb ; do {
- echo lintian run for $i
- lintian $i
-} ; done
-
-# display and preserve debdiffs
-if [ -e tuxmath_${PREVIOUS_VERSION}.dsc ] ; then
- debdiff tuxmath_${PREVIOUS_VERSION}.dsc tuxmath_$1-$2.dsc > tuxmath_${PREVIOUS_VERSION}--$1-$2.dsc.diff
- debdiff tuxmath_${PREVIOUS_VERSION}.dsc tuxmath_$1-$2.dsc |less
- debdiff tuxmath_${PREVIOUS_VERSION}.dsc tuxmath_$1-$2.dsc |diffstat
- debdiff tuxmath_${PREVIOUS_VERSION}_`dpkg-architecture -qDEB_BUILD_ARCH`.deb tuxmath_$1-$2_`dpkg-architecture -qDEB_BUILD_ARCH`.deb > tuxmath_${PREVIOUS_VERSION}--$1-$2_`dpkg-architecture -qDEB_BUILD_ARCH`.deb.diff
- debdiff tuxmath_${PREVIOUS_VERSION}_`dpkg-architecture -qDEB_BUILD_ARCH`.deb tuxmath_$1-$2_`dpkg-architecture -qDEB_BUILD_ARCH`.deb|less
-fi
-
-echo
-echo now run
-echo pbuilder build tuxmath_$1-$2.dsc
-echo if you plan to upload the package
More information about the Tux4kids-commits
mailing list