From 37df1ae07cd4720553c61a5a5a8a7e2de7090891 Mon Sep 17 00:00:00 2001 From: freesource Date: Wed, 12 Feb 2003 07:01:43 +0000 Subject: [PATCH] A better approach. --- configure | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 configure diff --git a/configure b/configure new file mode 100755 index 0000000..8d8c84b --- /dev/null +++ b/configure @@ -0,0 +1,18 @@ +#!/bin/bash -x + +# This presently just does two things: compiles skas-or-tt, and then edits +# the Makefile to the MODE of the system. + +SKAS_OR_TT_DIR=skas-or-tt + +#skas-or-tt: + +if [ ! -f $SKAS_OR_TT_DIR/skas-or-tt ] ; then \ + make -C $SKAS_OR_TT_DIR; \ + strip -s $SKAS_OR_TT_DIR/skas-or-tt; \ +fi; + + perl -e 'open(IT,"skas-or-tt/skas-or-tt|") or die "Trouble opening skas-or-tt/skas-or-tt\n"; while () { if (!m,not found$$,) { $it = "skas"; } else { $it = "tt"; } } system "perl -pi -e \"s/MODE=tt\n/MODE=skas\n/g\" Makefile" if $it eq "skas"; system "perl -pi -e \"s/MODE=skas\n/MODE=tt\n/g\" Makefile" if $it eq "tt"; ' + + +