[Tux4kids-commits] r144 - tuxmath/people/holger
Holger Levsen
h01ger-guest at alioth.debian.org
Tue Apr 3 14:24:33 UTC 2007
Author: h01ger-guest
Date: 2007-04-03 14:24:33 +0000 (Tue, 03 Apr 2007)
New Revision: 144
Modified:
tuxmath/people/holger/make_debian_packages
Log:
only run debdiff if a previous version exists
Modified: tuxmath/people/holger/make_debian_packages
===================================================================
--- tuxmath/people/holger/make_debian_packages 2007-04-03 13:38:41 UTC (rev 143)
+++ tuxmath/people/holger/make_debian_packages 2007-04-03 14:24:33 UTC (rev 144)
@@ -75,10 +75,12 @@
} ; done
# display and preserve debdiffs
-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}_`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
+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}_`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
More information about the Tux4kids-commits
mailing list