projects
/
git-tools-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use path for id-pbuild.sh to get other script locations
[git-tools-moved-to-github.git]
/
id-deb-build
/
id-pbuild.sh
diff --git
a/id-deb-build/id-pbuild.sh
b/id-deb-build/id-pbuild.sh
index
8e07f24
..
9a8f202
100755
(executable)
--- a/
id-deb-build/id-pbuild.sh
+++ b/
id-deb-build/id-pbuild.sh
@@
-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
@@
-40,7
+43,10
@@
done
if test "$do_help" = "yes"; then
usage 1 1>&2
fi
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
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
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`