X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=id-deb-build%2Fid-pbuild.sh;h=9a8f2027c1ece45e94fb08781077284470f01397;hb=03096f528e96eddeb87bba805e35572476809bb7;hp=8e07f24c05e99c2b49650c877a8784522222637b;hpb=59bd10fb387c1460bf9438b27942bfc499944b98;p=git-tools-moved-to-github.git diff --git a/id-deb-build/id-pbuild.sh b/id-deb-build/id-pbuild.sh index 8e07f24..9a8f202 100755 --- a/id-deb-build/id-pbuild.sh +++ b/id-deb-build/id-pbuild.sh @@ -11,6 +11,9 @@ Options: EOF exit $1 } +D0=`dirname $0` +ID_DEB_BUILD=`cd $D0; pwd` + do_help=false upload=false while test $# -gt 0; do @@ -40,7 +43,10 @@ done if test "$do_help" = "yes"; then usage 1 1>&2 fi - +if test ! -x /usr/bin/lxc-attach; then + echo "No lxc-attach. Probably not running on mochi!!" + exit 1 +fi if test -f IDMETA; then . ./IDMETA else @@ -55,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 -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`