From 592c6676e6ca63da2baf9cf62bf3680d3fef3e58 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Tue, 19 Feb 2013 17:27:43 -0500 Subject: Warn on non-existent SUBSTS.local file, make sure it's 600 --- dm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'dm') 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` -- cgit v1.2.3