Use path for id-pbuild.sh to get other script locations
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 29 Jun 2015 13:31:26 +0000 (13:31 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 29 Jun 2015 13:31:26 +0000 (13:31 +0000)
id-deb-build/id-pbuild.sh

index 8c76b9e..9a8f202 100755 (executable)
@@ -11,6 +11,9 @@ Options:
 EOF
     exit $1
 }
 EOF
     exit $1
 }
+D0=`dirname $0`
+ID_DEB_BUILD=`cd $D0; pwd`
+
 do_help=false
 upload=false
 while test $# -gt 0; do
 do_help=false
 upload=false
 while test $# -gt 0; do
@@ -58,7 +61,6 @@ if test "$DEBIAN_DIST_A" -o "$UBUNTU_DIST_A" -o "$CENTOS_DIST_A"; then
     UBUNTU_DIST=$UBUNTU_DIST_A
     CENTOS_DIST=$CENTOS_DIST_A
 fi
     UBUNTU_DIST=$UBUNTU_DIST_A
     CENTOS_DIST=$CENTOS_DIST_A
 fi
-ID_DEB_BUILD=~/proj/git-tools/id-deb-build
 if test "$DEBIAN_DIST" -o "$UBUNTU_DIST"; then
     debian=true
     DNAME=`awk '/Source:/ {print $2}' debian/control`
 if test "$DEBIAN_DIST" -o "$UBUNTU_DIST"; then
     debian=true
     DNAME=`awk '/Source:/ {print $2}' debian/control`