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 >
Wrap
OS/2 REXX Batch file
|
1995-07-08
|
1KB
|
51 lines
/* fat.cmd */
files = 'bool.h builtinbuf.h CursesW.h iostream.h libio.h minmax.h'
files = files||' parsestream.h procbuf.h RNG.h std.h streambuf.h'
files = files||' exception stdexcept gen\SplayNode.ccP'
'@echo off'
if stream('getpagesize.h', 'C', 'QUERY EXISTS') == '' then do
say 'Already done'
exit
end
do i = 1 to words(files)
file = word(files, i)
say 'Patching' file
'sed -f fat.sed >tmp' file
if rc \= 0 then do
say 'sed failed!'
exit
end
'touch -r' file 'tmp'
'del' file
'move tmp' file '>nul'
end
say 'Renaming files'
'ren _G_config.h _G_confi.h'
'ren algorithm algorith'
'ren AllocRing.h AllocRin.h'
'ren BitString.h BitStrin.h'
'ren builtinbuf.h builtinb.h'
'ren exception exceptio'
'ren functional function'
'ren getpagesize.h getpages.h'
'ren Incremental.h Incremen.h'
'ren indstream.h indstrea.h'
'ren parsestream.h parsestr.h'
'ren stdexcept stdexcep'
'ren stdiostream.h stdiostr.h'
'ren streambuf.h streambu.h'
'ren strstream.h strstrea.h'
'ren typemacros.h typemacr.h'
'ren gen\SplayNode.ccP SplayNod.ccP'
'ren gen\SplayNode.hP SplayNod.hP'
'ren std\exception.h exceptio.h'
'ren std\ldcomplex.h ldcomple.h'
'ren std\stdexcept.h stdexcep.h'
say 'Done'