From 87414481d1bf6efdae9f999e904ab8dd8392f239 Mon Sep 17 00:00:00 2001
From: Michele Tartara <mtartara@google.com>
Date: Fri, 10 May 2013 15:46:51 +0200
Subject: [PATCH] Allow build_chroot to work from any directory

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/devel/build_chroot b/devel/build_chroot
index 926c74a0c..d134a4b75 100755
--- a/devel/build_chroot
+++ b/devel/build_chroot
@@ -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}
-- 
GitLab