From 4bf1f55a54a7be7fbbe9220004252f1b96162a5f Mon Sep 17 00:00:00 2001 From: espie Date: Tue, 13 Jul 2004 12:05:27 +0000 Subject: [PATCH] nasty linux folks: nhc98 would build just fine if you happened to have a bash installed, since this script magically switches to bash if it's there... and misses a \n when run with ksh. --- lang/nhc98/patches/patch-script_tprofprel | 34 +++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 lang/nhc98/patches/patch-script_tprofprel diff --git a/lang/nhc98/patches/patch-script_tprofprel b/lang/nhc98/patches/patch-script_tprofprel new file mode 100644 index 00000000000..a65abdc6897 --- /dev/null +++ b/lang/nhc98/patches/patch-script_tprofprel @@ -0,0 +1,34 @@ +$OpenBSD: patch-script_tprofprel,v 1.1 2004/07/13 12:05:27 espie Exp $ +--- script/tprofprel.orig Tue Jul 13 13:50:24 2004 ++++ script/tprofprel Tue Jul 13 13:54:21 2004 +@@ -7,20 +7,8 @@ case $# in + 1) exit 1;; + esac + +-case $BASH in +- "") if ( bash --version -e >/dev/null 2>&1 ) +- then exec bash $0 "$@" +- fi ;; +- *) ;; +-esac ++increment() { echo $1 + 1 | bc; } + +- +-# Nasty compatibility stuff between /bin/sh/ and bash for arithmetic. +-if sh --version -e | grep -y gnu >/dev/null +-then increment() { ( let x=$1+1; echo $x; ); } +-else increment() { echo $1 + 1 | bc; } +-fi +- + BUILTIN='Builtin' #Runtime Module added to beginning + MODNAMES='' + nummods=0 +@@ -100,7 +88,7 @@ then + echo ' char *strc;' + echo ' int i = strlen(str)+1;' + echo ' if(0==(strc = (char *)malloc(i))) {' +- echo ' fprintf(stderr,"No space to duplicate \"%s\"\n",str);' ++ echo ' fprintf(stderr,"No space to duplicate \"%s\"\\n",str);' + echo ' exit(-1);' + echo ' }' + echo ' strcpy(strc,str);'