Author: moeller
Date: 2009-07-17 20:04:33 +0000 (Fri, 17 Jul 2009)
New Revision: 3659

Modified:
   trunk/packages/ball/trunk/debian/createBALLDeb
Log:
Analogous sed problem elsewhere


Modified: trunk/packages/ball/trunk/debian/createBALLDeb
===================================================================
--- trunk/packages/ball/trunk/debian/createBALLDeb      2009-07-17 19:00:40 UTC 
(rev 3658)
+++ trunk/packages/ball/trunk/debian/createBALLDeb      2009-07-17 20:04:33 UTC 
(rev 3659)
@@ -6,7 +6,12 @@
 
 VERSION="1.3"
 PREFIX=/usr
-export BALL_PATH=`pwd | sed 's/debian$//g' | sed 's/debian-upstream$//g'`
+export BALL_PATH=`pwd | sed -e 's%/debian$%%' -e 's%/debian-upstream$%%'`
+if [ ! -d "$BALL_PATH" ]; then
+       echo "$0: source root directory '$BALL_PATH' is not existing."
+       echo "Pwd: " `pwd`
+       exit -1
+fi
 export BALL_INSTALL_PATH=${BALL_PATH}/debian/ball/$PREFIX
 
 # we will need the python version used to build our modules later


_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-med-commit

Reply via email to