home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / emxtutor.zip / emxsrcd2.zip / emx / include / make.cmd < prev    next >
OS/2 REXX Batch file  |  1998-11-01  |  619b  |  16 lines

  1. /* make.cmd */
  2.  
  3. if stream('unchecked.h', 'C', 'QUERY EXISTS') == '',
  4.   |stream('cpp\stl_hash_set.h', 'C', 'QUERY EXISTS') == '' then do
  5.   say 'Do not run this procedure now.'
  6.   exit 1
  7. end
  8.  
  9. 'gfind . -type f -print|grep -e "^\(.*/\)*[^/.]\{9,\}\(\.[hc]\|\.cc\|\.hP\|\.ccP\|\)$" >make.$$1'
  10. 'sed -f make1.sed make.$$1 >make.$$2'
  11. 'sed -f make2.sed make.$$1 >longshrt.ls1'
  12. 'gfind . -type f -print|grep -e "^\(.*/\)*[^/.]\+\(\.[hc]\|\.cc|\.hP\|\.ccP\|\)$"|xargs grep -l -f make.$$2 >longshrt.ls2'
  13. 'sed -f make3.sed longshrt.ls1 >short.sed'
  14. 'sed -f make4.sed longshrt.ls1 >long.sed'
  15. 'del make.$$1 make.$$2 >nul'
  16.