[Pkg-voip-commits] r4697 - /zaptel/trunk/debian/modulestest

tzafrir-guest at alioth.debian.org tzafrir-guest at alioth.debian.org
Sat Oct 6 22:32:15 UTC 2007


Author: tzafrir-guest
Date: Sat Oct  6 22:32:15 2007
New Revision: 4697

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=4697
Log:
Remove a warning and produce a nicer ls command.

Modified:
    zaptel/trunk/debian/modulestest

Modified: zaptel/trunk/debian/modulestest
URL: http://svn.debian.org/wsvn/pkg-voip/zaptel/trunk/debian/modulestest?rev=4697&op=diff
==============================================================================
--- zaptel/trunk/debian/modulestest (original)
+++ zaptel/trunk/debian/modulestest Sat Oct  6 22:32:15 2007
@@ -3,7 +3,7 @@
 # debian/modulestest: a postbuild script to build zaptel modules
 # example usage:
 #  
-#  svn-buildpackage -rfakeroot --svn-postbuild='debian/modulestest -a' --svn-ignore-new --svn-lintian -uc -us
+#  svn-buildpackage -rfakeroot --svn-postbuild='debian/modulestest -r' --svn-ignore-new --svn-lintian -uc -us
 
 # At least one of the following two must be set to a sensible value:
 # If both are empty, the script does nothing useful)
@@ -48,11 +48,9 @@
 if [ "$KERNEL_SOURCES" != '' ]; then srcs_sw="-k $KERNEL_SOURCES"; fi
 
 # must be absolute for m-a ta accept TARBALL:
-# Also note that $PWD is ugly and is abot to be deleted.
-if [ -x /usr/bin/realpath ]
-then TOP_DIR=`realpath $PWD/../`
-else TOP_DIR=$PWD/../
-fi
+# Also note that $PWD is ugly and is about to be deleted. We need
+# $PWD/.. 
+TOP_DIR=`dirname $PWD`
 MODS_DIR=$TOP_DIR/modules
 TAR_BALL=$MODS_DIR/usr/src/zaptel.tar.bz2
 DEB=$TOP_DIR/$PACKAGE-source_${TAG_VERSION}_all.deb
@@ -61,7 +59,6 @@
 rm -f $LOG_FILE
 dpkg -x $DEB $MODS_DIR
 
-rm -f $TOP_DIR/
 if [ "$hdrs_sw" != '' ]; then
   TARBALL=$TAR_BALL $MODASS -u $TOP_DIR -t -i -f $hdrs_sw build $PACKAGE >>$LOG_FILE
 fi




More information about the Pkg-voip-commits mailing list