1#!/bin/sh 2 3if [ -f mksources.finished ]; then 4 exit 0 5fi 6 7touch mksources.finished 8 9if [ ! "$1" = "" ]; then 10 cd $1 && ( 11 cat Makefile.in | sed -e 's/$(CC) $(OFILES)/#&/' > Makefile.foo 12 mv Makefile.foo Makefile.in 13 cat pax.c | sed -e s/pax_main/main/g > pax.c.foo 14 cat pax.c.foo | sed -e s/main/pax_main/g > pax.c 15 rm pax.c.foo 16 for f in *.c *.h; do 17 cat $f | sed -e s/pax_warn/warn/g > $f.foo 18 cat $f.foo | sed -e s/warn/pax_warn/g > $f 19 rm $f.foo 20 done 21 if [ ! -f config.status ]; then 22 ./configure 23 fi 24 make pax 25) 26cd .. 27fi 28