From: Prof. A O. (T. A. Chief) <afr...@fr...> - 2002-11-05 18:44:59
|
Earnie Boyd wrote: >What is the syntax of the move? IIRC, the fail mv on rename fail is >typical UNIX behaviour. So, how can the GPC build process be changed >to live in the spirit of portability? > >Earnie. The syntax is below. Perhaps you can find a better way of doing it? But it seems pretty okay to me. There is no problem building GPC on Linux or other unix systems: # Adjust Makefiles to GCC version for x in "$srcdir/p/Makefile.in" "$srcdir/p/Make-lang.in"; do if [ $egcs = y ]; then if grep '^[^#].*gcc-2\.8\.1-ONLY' "$x" > /dev/null; then echo "Adjusting $x for gcc>2.8.1" >&2 sed '/^[^#].*gcc-2\.8\.1-ONLY/s/^/#/' "$x" > tmpfile && mv tmpfile "$x" || exit 1 fi else if grep '^#.*gcc-2\.8\.1-ONLY' "$x" > /dev/null; then echo "Adjusting $x for gcc-2.8.1" >&2 sed '/^#.*gcc-2\.8\.1-ONLY/s/^#//' "$x" > tmpfile && mv tmpfile "$x" || exit 1 fi fi done Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/ email: afr...@bi... |