home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / lib270b.zip / emx / include / cpp / fat.cmd < prev    next >
OS/2 REXX Batch file  |  1995-07-08  |  1KB  |  51 lines

  1. /* fat.cmd */
  2.  
  3. files = 'bool.h builtinbuf.h CursesW.h iostream.h libio.h minmax.h'
  4. files = files||' parsestream.h procbuf.h RNG.h std.h streambuf.h'
  5. files = files||' exception stdexcept gen\SplayNode.ccP'
  6.  
  7. '@echo off'
  8.  
  9. if stream('getpagesize.h', 'C', 'QUERY EXISTS') == '' then do
  10.   say 'Already done'
  11.   exit
  12. end
  13.  
  14. do i = 1 to words(files)
  15.   file = word(files, i)
  16.   say 'Patching' file
  17.   'sed -f fat.sed >tmp' file
  18.   if rc \= 0 then do
  19.     say 'sed failed!'
  20.     exit
  21.   end
  22.   'touch -r' file 'tmp'
  23.   'del' file
  24.   'move tmp' file '>nul'
  25. end
  26.  
  27. say 'Renaming files'
  28. 'ren _G_config.h _G_confi.h'
  29. 'ren algorithm algorith'
  30. 'ren AllocRing.h AllocRin.h'
  31. 'ren BitString.h BitStrin.h'
  32. 'ren builtinbuf.h builtinb.h'
  33. 'ren exception exceptio'
  34. 'ren functional function'
  35. 'ren getpagesize.h getpages.h'
  36. 'ren Incremental.h Incremen.h'
  37. 'ren indstream.h indstrea.h'
  38. 'ren parsestream.h parsestr.h'
  39. 'ren stdexcept stdexcep'
  40. 'ren stdiostream.h stdiostr.h'
  41. 'ren streambuf.h streambu.h'
  42. 'ren strstream.h strstrea.h'
  43. 'ren typemacros.h typemacr.h'
  44. 'ren gen\SplayNode.ccP SplayNod.ccP'
  45. 'ren gen\SplayNode.hP SplayNod.hP'
  46. 'ren std\exception.h exceptio.h'
  47. 'ren std\ldcomplex.h ldcomple.h'
  48. 'ren std\stdexcept.h stdexcep.h'
  49.  
  50. say 'Done'
  51.