initialize 553 B

12345678910111213141516171819202122
  1. #! /bin/sh
  2. if test "$1" = ""; then
  3. echo "must give a make command as the argument."
  4. echo "(eg: initialize /usr/atria/bin/clearmake -C gnu)"
  5. exit 1
  6. fi
  7. test -d ../../include || mkdir ../../include
  8. test -d ../../bin || mkdir ../../bin
  9. cp Makefile.install.rules Makefile.meta.rules Makefile.install.vars Makefile.project.vars Makefile.penv.vars Makefile.o.vars ctproj.pl ../../include
  10. cp ctproj ctpathadjust ../../bin
  11. cd ../..
  12. if test "$DTOOL" = ""; then
  13. DTOOL=`pwd`
  14. export DTOOL
  15. fi
  16. PATH=$DTOOL/bin:$PATH
  17. export PATH
  18. ppremake
  19. $* build attach