From 365f1eadaa969e807dd8906a3291100b4a37def6 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Mon, 1 Dec 1997 14:50:52 +0000 Subject: dded error checking to scripts (This used to be commit b7e1265f106010e03d92575f4578162ec659994b) --- packaging/SGI/makefile.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packaging/SGI/makefile.pl') diff --git a/packaging/SGI/makefile.pl b/packaging/SGI/makefile.pl index 544fb7e32d..bd34299ac7 100755 --- a/packaging/SGI/makefile.pl +++ b/packaging/SGI/makefile.pl @@ -12,8 +12,8 @@ else { $OSver = $ARGV[0]; } -open(MAKEIN,"../../source/Makefile"); -open(MAKEOUT,">Makefile"); +open(MAKEIN,"../../source/Makefile") || die "Unable to open source Makefile\n"; +open(MAKEOUT,">Makefile") || die "Unable to open Makefile for output\n"; while () { if (/^BASEDIR =/) { print MAKEOUT "BASEDIR = /usr/samba\n"; -- cgit