Avoid segfault when ticky file argument is stderr
[ghc-hetmet.git] / boot
diff --git a/boot b/boot
index aa90626..d983d2f 100644 (file)
--- a/boot
+++ b/boot
@@ -2,6 +2,16 @@
 
 set -e
 
+for d in `cat libraries/core-packages`
+do
+    if test ! -d libraries/$d
+    then
+        echo "Looks like you're missing libraries/$d,"
+        echo "maybe you haven't done 'sh darcs-all get'?"
+        exit 1
+    fi
+done
+
 autoreconf
 
 for lib in libraries/*; do