2 rem Tar up an external distribution of OGL
4 if "%1" == "" goto usage
5 if "%2" == "" goto usage
6 echo About to archive an external OGL distribution
:
9 echo CTRL
-C
if this is
not correct.
10 inkey
/W4 `Press any key to continue...`
%%input
15 rem First, expand the wildcards in the ogl.rsp file
17 rem Create empty list file
18 erase %1\distrib\ogl.lis
19 c
:\bin
\touch
%1\distrib\ogl.lis
21 rem Create a .rsp file with backslashes instead
22 rem of forward slashes
23 rem No need if using ls2 (from UNIX95 distribution)
24 rem sed -e "s/\//\\/g" %1\distrib\ogl.rsp > %1\distrib\ogl.rs2
26 set len
=%@LINES
[%1\distrib\ogl.rsp
]
27 rem set len=%@DEC[%len]
29 set line
=%@LINE
[%1\distrib\ogl.rsp
,%i
]
30 if NOT "%line" == "" ls2
-1 %line
>> %1\distrib\ogl.lis
33 tar
-c
-T
%1\distrib\ogl.lis
34 move archive.tar ogl.tar
36 move ogl.taz
%2\ogl.tgz
42 echo DOS OGL distribution.
43 echo Usage
: tarogl source destination
44 echo e.g. tarogl c
:\wx\utils\ogl c
:\wx\utils\ogl\deliver