]> granicus.if.org Git - nethack/commitdiff
Complain if hints file does not exist
authorPasi Kallinen <paxed@alt.org>
Tue, 10 Oct 2017 14:50:39 +0000 (17:50 +0300)
committerPasi Kallinen <paxed@alt.org>
Tue, 10 Oct 2017 14:50:39 +0000 (17:50 +0300)
sys/unix/setup.sh

index f3319adb77829ccdcc394463b5e815414a97ac36..5c210264ced0601bcc67ae70e18dc24dd53d099b 100755 (executable)
@@ -26,6 +26,11 @@ x)      hints=/dev/null
         ;;
 esac
 
+if [ ! -f "$hints" ]; then
+    echo "Cannot find hints file $hfile"
+    exit 1
+fi
+
 /bin/sh ./mkmkfile.sh Makefile.top TOP ../../Makefile $hints $hfile
 /bin/sh ./mkmkfile.sh Makefile.dat DAT ../../dat/Makefile $hints $hfile
 /bin/sh ./mkmkfile.sh Makefile.doc DOC ../../doc/Makefile $hints $hfile