[pkg-kde-commits] rev 2597 - scripts
Josh Metzler
jdmetz-guest at costa.debian.org
Thu Dec 8 02:19:00 UTC 2005
Author: jdmetz-guest
Date: 2005-12-08 02:19:00 +0000 (Thu, 08 Dec 2005)
New Revision: 2597
Modified:
scripts/create-buildprep
Log:
Fail if we don't find a debian subdir.
Modified: scripts/create-buildprep
===================================================================
--- scripts/create-buildprep 2005-12-07 23:38:23 UTC (rev 2596)
+++ scripts/create-buildprep 2005-12-08 02:19:00 UTC (rev 2597)
@@ -27,6 +27,9 @@
# strip everything after the first underscore to get the base name
BASENAME=${1%%_*}
+# bail out if this doesn't look like a source directory
+test -d $DIRNAME/debian || { echo "Failed to find a debian subdir" && exit 1; }
+
# clean the source tree before making the backup copy
cd $DIRNAME && fakeroot debian/rules clean
cd ..
More information about the pkg-kde-commits
mailing list