From 22a6dba7b1b9941ff95d7d8cea52a44048fde16a Mon Sep 17 00:00:00 2001 From: hjp Date: Thu, 10 Apr 2003 08:42:56 +0000 Subject: [PATCH] Added configure --- grouptools/configure | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 grouptools/configure diff --git a/grouptools/configure b/grouptools/configure new file mode 100644 index 0000000..9279c24 --- /dev/null +++ b/grouptools/configure @@ -0,0 +1,34 @@ +#!/bin/sh +# +echo "#!/bin/sh" > customize.$$ +echo "sed \\" > customize.$$ +chmod +x customize.$$ + +################################################################ +# find a working perl: +# +for i in /usr/bin/perl /usr/local/bin/perl /usr/bin/perl5 /usr/local/bin/perl5 +do + if $i -e 'exit ($] < 5.000)' + then + echo $i works + perl="$i" + break + fi +done +if [ -z "$perl" ] +then + echo could not find a working perl command, sorry. + exit 1 +fi +echo " -e 's,@@@perl@@@,$perl,g' \\" >> customize.$$ + + +################################################################ +# finish +# Add trailing newline and rename temp file to final name +# +echo >> customize.$$ + +mv customize.$$ customize +