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