]> git.saurik.com Git - wxWidgets.git/blame_incremental - utils/ogl/distrib/tarogl.bat
latest CW additions
[wxWidgets.git] / utils / ogl / distrib / tarogl.bat
... / ...
CommitLineData
1@echo off
2rem Tar up an external distribution of OGL
3
4if "%1" == "" goto usage
5if "%2" == "" goto usage
6echo About to archive an external OGL distribution:
7echo From %1
8echo To %2\ogl.tgz
9echo CTRL-C if this is not correct.
10inkey /W4 `Press any key to continue...` %%input
11
12erase %2\ogl.tgz
13cd %1
14
15rem First, expand the wildcards in the ogl.rsp file
16
17rem Create empty list file
18erase %1\distrib\ogl.lis
19c:\bin\touch %1\distrib\ogl.lis
20
21rem Create a .rsp file with backslashes instead
22rem of forward slashes
23rem No need if using ls2 (from UNIX95 distribution)
24rem sed -e "s/\//\\/g" %1\distrib\ogl.rsp > %1\distrib\ogl.rs2
25
26set len=%@LINES[%1\distrib\ogl.rsp]
27rem set len=%@DEC[%len]
28do i = 0 to %len by 1
29 set line=%@LINE[%1\distrib\ogl.rsp,%i]
30 if NOT "%line" == "" ls2 -1 %line >> %1\distrib\ogl.lis
31enddo
32
33tar -c -T %1\distrib\ogl.lis
34move archive.tar ogl.tar
35gzip ogl.tar
36move ogl.taz %2\ogl.tgz
37
38echo OGL archived.
39goto end
40
41:usage
42echo DOS OGL distribution.
43echo Usage: tarogl source destination
44echo e.g. tarogl c:\wx\utils\ogl c:\wx\utils\ogl\deliver
45
46:end
47
48