home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 113 / EnigmaAmiga113CD.iso / software / sviluppo / sed-3.02 / djgpp / bootstrap.bat next >
Encoding:
DOS Batch File  |  1998-06-05  |  687 b   |  20 lines

  1. @echo off
  2. if exist config.h goto Compile
  3. echo Creating basic config.h...
  4. echo /* A bootstrap version of config.h for DJGPP DOS systems */ > config.h
  5. echo #define PACKAGE "sed" >> config.h
  6. echo #define VERSION "``bootstrap''" >> config.h
  7. echo #define BOOTSTRAP 1 >> config.h
  8.  
  9. :Compile
  10. Rem tell the user what we're doing from here on...
  11. @echo on
  12. if exist lib\*.o del lib\*.o
  13. if exist sed\*.o del sed\*.o
  14. if exist sed\sed del sed\sed
  15. cd lib
  16. gcc -DHAVE_CONFIG_H -I.. -I. -c getopt.c getopt1.c memcmp.c memmove.c regex.c strerror.c
  17. cd ..\sed
  18. gcc -DHAVE_CONFIG_H -I.. -I. -I../lib -c sed.c compile.c execute.c utils.c
  19. gcc -o sed sed.o compile.o execute.o utils.o ../lib/*.o
  20.