1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Files
2024-07-22 01:58:46 -03:00

28 lines
595 B
Bash
Executable File

#!/bin/sh
if [ -f mksources.finished ]; then
exit 0
fi
touch mksources.finished
if [ ! "$1" = "" ]; then
cd $1 && (
cat Makefile.in | sed -e 's/$(CC) $(OFILES)/#&/' > Makefile.foo
mv Makefile.foo Makefile.in
cat pax.c | sed -e s/pax_main/main/g > pax.c.foo
cat pax.c.foo | sed -e s/main/pax_main/g > pax.c
rm pax.c.foo
for f in *.c *.h; do
cat $f | sed -e s/pax_warn/warn/g > $f.foo
cat $f.foo | sed -e s/warn/pax_warn/g > $f
rm $f.foo
done
if [ ! -f config.status ]; then
./configure
fi
make pax
)
cd ..
fi