mirror of
https://github.com/fspc/gbootroot.git
synced 2025-02-22 16:43:23 -05:00
A better approach.
This commit is contained in:
parent
42a02543bb
commit
37df1ae07c
18
configure
vendored
Executable file
18
configure
vendored
Executable file
@ -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…
x
Reference in New Issue
Block a user