aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2013-02-19 17:27:43 -0500
committerRyan Kavanagh <rak@debian.org>2013-02-19 17:34:03 -0500
commit592c6676e6ca63da2baf9cf62bf3680d3fef3e58 (patch)
treeef57f9751fc5a504ac07ec1195fe6731511535bf
parentUpdate magit to include commit dropping sed -i (diff)
Warn on non-existent SUBSTS.local file, make sure it's 600
Diffstat (limited to '')
-rwxr-xr-xdm7
1 files changed, 7 insertions, 0 deletions
diff --git a/dm b/dm
index 21adf13..e9e9229 100755
--- a/dm
+++ b/dm
@@ -2,6 +2,13 @@
set -e
+if [ ! -f SUBSTS.local ]; then
+ echo "Please create the file SUBSTS.local first."
+ exit 1;
+fi
+
+chmod 600 SUBSTS.local
+
if [ `uname` = "Linux" ]; then
make --version | grep "GNU Make" > /dev/null 2>&1 || { echo "Please install GNU Make"; exit 1; }
MAKE=`command -v make`