home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Exec 5 / CD_Magazyn_EXEC_nr_5.iso / Programy / MorphOS / morphosdev-150201.lha / emultools / geninclude < prev    next >
Encoding:
Text File  |  2001-02-14  |  952 b   |  38 lines

  1. #! sh
  2.  
  3. # Frontend for geninclude.pl.
  4. # Copy operation may take a while. To speed up
  5. # use a cache programm.
  6. #
  7. # Please change these paths for your setup.
  8.  
  9. SOURCEDIR=./
  10. DESTDIR=./includenew
  11.  
  12. #
  13. #
  14.  
  15. echo Generating script for os-includes ...
  16. (cd $SOURCEDIR; find ./include -type d -printf "$DESTDIR/%p\n" | xargs mkdir -p)
  17. #(cd $SOURCEDIR; find ./include -iname *.h -printf "perl geninclude.pl >$DESTDIR/%p $SOURCEDIR/%p\n" >/tmp/geninclude)
  18. (cd $SOURCEDIR; find include -iname *.h -printf "perl geninclude.pl >$DESTDIR/%p $SOURCEDIR/%p\n" | grep -v pragmas | grep -v inline >/tmp/geninclude)
  19.  
  20. . /tmp/geninclude
  21.  
  22. #echo Generating script for ixemul includes ...
  23. #(cd $SOURCEDIR; find include -type d -printf "$DESTDIR/%p\n" | xargs mkdir -p)
  24. #(cd $SOURCEDIR; find include -iname *.h -printf "perl geninclude.pl >$DESTDIR/%p $SOURCEDIR/%p\n" | grep -v pragmas | grep -v inline >/tmp/geninclude)
  25.  
  26. #. /tmp/geninclude
  27.  
  28. echo Done
  29. rm -f /tmp/geninclude
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.