2 rem Tar up an external distribution of wxWidgets 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.
8 if "%1" == "" goto usage
9 if "%2" == "" goto usage
10 echo About to archive an external wxWidgets
2.0 distribution
:
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
19 rem First, expand the wildcards in the rsp files
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
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
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
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
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
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
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
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
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
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
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
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.
74 rem This converts to lower case
75 ren %2\wx200.tar
%2\wx200_1.tar
77 ren %2\wx200_1.tar.gz
%2\wx200_1.tgz
79 rem No linefeed conversion wanted
80 rem Note: GNU tar seems to crash with a full destination path, so
82 targnu
-c
-T
%1\distrib\wx200bin.lis
-f wx200_2.tar
85 ren %2\wx200_2.tar.gz
%2\wx200_2.tgz
87 targnu
-c
-T
%1\distrib\wx200hlp.lis
-f wx200_hlp.tar
89 gzip32
%2\wx200_hlp.tar
90 ren %2\wx200_hlp.tar.gz
%2\wx200hlp.tgz
92 tar
-c
-T
%1\distrib\wx200ps.lis
-f
%2\wx200ps.tar
94 ren %2\wx200ps.tar.gz
%2\wx200ps.tgz
96 targnu
-c
-T
%1\distrib\wx200htm.lis
-f wx200htm.tar
98 gzip32
%2\wx200htm.tar
99 ren %2\wx200htm.tar.gz
%2\wx200htm.tgz
101 targnu
-c
-T
%1\distrib\wx200pdf.lis
-f wx200pdf.tar
103 gzip32
%2\wx200pdf.tar
104 ren %2\wx200pdf.tar.gz
%2\wx200pdf.tgz
107 echo wxWidgets archived.
111 echo Tar
/gzip wxWidgets 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