Browse Source

A better approach.

master
freesource 22 years ago
parent
commit
37df1ae07c
  1. 18
      configure

18
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 (<IT>) { 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"; '
Loading…
Cancel
Save