Mason Ip wrote:
I wrote:
BTW, this little script could build all the units (except
gpc-bp.pas for BP, not for GPC).
/opt/GCC2952/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/units> cat
build_units
#!/bin/sh for file in `ls *.pas` do gpc -c $file done
Oooop... forgot to say : Run this script twice; the first run build those units without dependancy on the others; the second run build the remainder. Dirty and quick :)
I think you can just use `--automake' in this script to avoid the problem...
BTW, ls is not really needed, just `for file in *.pas' will do.
Well, in fact, you can even do `gpc --automake -c *.pas', I just tried it... :-)
Frank