aboutsummaryrefslogtreecommitdiff
path: root/tests/init.sh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-01-28 11:05:56 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-01-28 11:05:56 +0000
commit9ab0bc9395e8e9af453b649142c98242bb890ac8 (patch)
treeca16de4b0d887b857648d648fccc774a6e91ae32 /tests/init.sh
parent0ea8b6993a76a24afb1a1f38699d80193249fa71 (diff)
* Another horrible `make check' hack.
Diffstat (limited to 'tests/init.sh')
-rw-r--r--tests/init.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/init.sh b/tests/init.sh
index 84d3fcf3e..e80a847c3 100644
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -29,7 +29,8 @@ mkdir -p "$NIX_LOCALSTATE_DIR"/log/nix
mkdir $NIX_DATA_DIR/nix
cp -prd $TOP/corepkgs $NIX_DATA_DIR/nix/
-# Bah, script has the prefix hard-coded.
+# Bah, script has the prefix hard-coded. This is really messy stuff
+# (and likely to fail).
for i in \
$NIX_DATA_DIR/nix/corepkgs/nar/nar.sh \
$NIX_DATA_DIR/nix/corepkgs/fetchurl/builder.sh \
@@ -43,7 +44,7 @@ for i in \
-e "s^$REAL_LIBEXEC_DIR^$NIX_LIBEXEC_DIR^" \
-e "s^$REAL_LOCALSTATE_DIR^$NIX_LOCALSTATE_DIR^" \
-e "s^$REAL_DATA_DIR^$NIX_DATA_DIR^" \
- -e "s^$REAL_STORE_DIR^$NIX_STORE_DIR^"
+ -e "s^$REAL_STORE_DIR\([^/]\)^$NIX_STORE_DIR\1^"
mv $i.tmp $i
chmod +x $i
done