]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tardist.bat
removed obsolete flag
[wxWidgets.git] / distrib / msw / tardist.bat
1 @echo off
2 rem Tar up an external distribution of wxWindows 2.0: but
3 rem putting in separate ASCII and binary files
4 rem This seems to be the one that works, using
5 rem separate tar programs for conversion/non-conversion
6 rem of ASCII/binary files.
7
8 if "%1" == "" goto usage
9 if "%2" == "" goto usage
10 echo About to archive an external wxWindows 2.0 distribution:
11 echo From %1
12 echo To %2\wx200_1.tgz, %2\wx200_2.tgz, %2\wx200hlp.tgz, %2\wx200ps.tgz, %2\wx200htm.tgz
13 echo CTRL-C if this is not correct.
14 inkey /W4 `Press any key to continue...` %%input
15
16 erase %2\*.tgz
17 cd %1
18
19 rem First, expand the wildcards in the rsp files
20
21 rem Create empty list file
22 erase %1\distrib\*.lis
23 c:\bin\touch %1\distrib\wx200asc.lis
24 c:\bin\touch %1\distrib\wx200bin.lis
25 c:\bin\touch %1\distrib\wx200hlp.lis
26 c:\bin\touch %1\distrib\wx200ps.lis
27 c:\bin\touch %1\distrib\wx200xlp.lis
28
29 rem Create a .rsp file with backslashes instead
30 rem of forward slashes
31 rem No need if using ls2 (from UNIX95 distribution)
32 rem sed -e "s/\//\\/g" %1\distrib\wx_asc.rsp > %1\distrib\wx_asc.rs2
33
34 call %1\distrib\expdwild.bat %1\distrib\wx_asc.rsp %1\distrib\wx200asc.lis
35 call %1\distrib\expdwild.bat %1\distrib\util_asc.rsp %1\distrib\wx200asc.lis
36 call %1\distrib\expdwild.bat %1\distrib\smpl_asc.rsp %1\distrib\wx200asc.lis
37 rem call %1\distrib\expdwild.bat %1\distrib\wxim1asc.rsp %1\distrib\wx200asc.lis
38 rem call %1\distrib\expdwild.bat %1\distrib\wxim2asc.rsp %1\distrib\wx200asc.lis
39
40 call %1\distrib\expdwild.bat %1\distrib\wx_bin.rsp %1\distrib\wx200bin.lis
41 call %1\distrib\expdwild.bat %1\distrib\util_bin.rsp %1\distrib\wx200bin.lis
42 call %1\distrib\expdwild.bat %1\distrib\smpl_bin.rsp %1\distrib\wx200bin.lis
43 rem call %1\distrib\expdwild.bat %1\distrib\wxim1bin.rsp %1\distrib\wx200bin.lis
44
45 rem Docs
46 call %1\distrib\expdwild.bat %1\distrib\wx_hlp.rsp %1\distrib\wx200hlp.lis
47 call %1\distrib\expdwild.bat %1\distrib\wx_ps.rsp %1\distrib\wx200ps.lis
48 call %1\distrib\expdwild.bat %1\distrib\wx_html.rsp %1\distrib\wx200htm.lis
49 call %1\distrib\expdwild.bat %1\distrib\wx_pdf.rsp %1\distrib\wx200pdf.lis
50
51 rem Do some further massaging of the .lis files
52 sed -e "s/\\/\//g" %1\distrib\wx200asc.lis > c:\temp\temp.tmp
53 sed -e "s/D:\/wx\///g" c:\temp\temp.tmp > %1\distrib\wx200asc.lis
54
55 sed -e "s/\\/\//g" %1\distrib\wx200bin.lis > c:\temp\temp.tmp
56 sed -e "s/D:\/wx\///g" c:\temp\temp.tmp > %1\distrib\wx200bin.lis
57
58 sed -e "s/\\/\//g" %1\distrib\wx200hlp.lis > c:\temp\temp.tmp
59 sed -e "s/D:\/wx\///g" c:\temp\temp.tmp > %1\distrib\wx200hlp.lis
60
61 sed -e "s/\\/\//g" %1\distrib\wx200ps.lis > c:\temp\temp.tmp
62 sed -e "s/D:\/wx\///g" c:\temp\temp.tmp > %1\distrib\wx200ps.lis
63
64 sed -e "s/\\/\//g" %1\distrib\wx200htm.lis > c:\temp\temp.tmp
65 sed -e "s/D:\/wx\///g" c:\temp\temp.tmp > %1\distrib\wx200htm.lis
66
67 sed -e "s/\\/\//g" %1\distrib\wx200pdf.lis > c:\temp\temp.tmp
68 sed -e "s/D:\/wx\///g" c:\temp\temp.tmp > %1\distrib\wx200pdf.lis
69
70 rem 'tar' converts linefeeds.
71 tar -c -T %1\distrib\wx200asc.lis -f %2\wx200.tar
72 rem pause Press a key to continue.
73
74 rem This converts to lower case
75 ren %2\wx200.tar %2\wx200_1.tar
76 gzip32 %2\wx200_1.tar
77 ren %2\wx200_1.tar.gz %2\wx200_1.tgz
78
79 rem No linefeed conversion wanted
80 rem Note: GNU tar seems to crash with a full destination path, so
81 rem pander to it.
82 targnu -c -T %1\distrib\wx200bin.lis -f wx200_2.tar
83 move wx200_2.tar %2
84 gzip32 %2\wx200_2.tar
85 ren %2\wx200_2.tar.gz %2\wx200_2.tgz
86
87 targnu -c -T %1\distrib\wx200hlp.lis -f wx200_hlp.tar
88 move wx200_hlp.tar %2
89 gzip32 %2\wx200_hlp.tar
90 ren %2\wx200_hlp.tar.gz %2\wx200hlp.tgz
91
92 tar -c -T %1\distrib\wx200ps.lis -f %2\wx200ps.tar
93 gzip32 %2\wx200ps.tar
94 ren %2\wx200ps.tar.gz %2\wx200ps.tgz
95
96 targnu -c -T %1\distrib\wx200htm.lis -f wx200htm.tar
97 move wx200htm.tar %2
98 gzip32 %2\wx200htm.tar
99 ren %2\wx200htm.tar.gz %2\wx200htm.tgz
100
101 targnu -c -T %1\distrib\wx200pdf.lis -f wx200pdf.tar
102 move wx200pdf.tar %2
103 gzip32 %2\wx200pdf.tar
104 ren %2\wx200pdf.tar.gz %2\wx200pdf.tgz
105
106 cd %2
107 echo wxWindows archived.
108 goto end
109
110 :usage
111 echo Tar/gzip wxWindows distribution under DOS, making an ASCII and binary file
112 echo Usage: tardist source destination
113 echo e.g. tardist d:\wx d:\wx\deliver
114
115 :end
116
117