Allow build_chroot to work from any directory
authorMichele Tartara <mtartara@google.com>
Fri, 10 May 2013 13:46:51 +0000 (15:46 +0200)
committerMichele Tartara <mtartara@google.com>
Fri, 10 May 2013 15:50:24 +0000 (17:50 +0200)
build_chroot used to work only if launched from ./devel/, whereas now
it can be launched from anywhere, and it will store the resulting files
in the current directory.

Fixes Issue 459.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>

devel/build_chroot

index 926c74a..d134a4b 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 #Configuration
-: ${DATA_DIR=data}
+: ${DATA_DIR=`dirname $0`/data}
 : ${ARCH=amd64}
 : ${DIST_RELEASE=squeeze}
 : ${CONF_DIR:=/etc/schroot/chroot.d}