2 # tardist: make up a tar.gz distribution of wxWindows 2
3 # Supply a source (e.g. ~/wx2) and destination (e.g. ~/wx2/deliver)
5 # We can't use e.g. this:
6 # ls `cat $SRC/distrib/msw/makefile.rsp` zip -@ -u $DEST/wxWindows-$VERSION-gen.zip
7 # because there's not enough space on the command line, plus we need to ignore the
17 for line
in `cat $toexpand` ; do
18 if [ "$line" != "" ]; then
19 ls $line >> $outputfile
28 echo Usage
: tardist wx
-dir output
-dir version
34 echo Usage
: tardist wx
-dir output
-dir version
40 echo Usage
: tardist wx
-dir output
-dir version
46 echo About to archive wxWindows
:
49 echo CTRL
-C if this is not correct.
54 echo Removing backup files...
55 rm *~
*/*~
*/*/*~
*/*/*/*~
*/*/*/*/*~
57 rm -f $2/wx
*-${WXVER}*.
tar.gz
58 rm -f $2/tex2rtf2
-*.
tar.gz
59 rm -f $2/dialoged
-*.
tar.gz
60 rm -f $2/ogl3
-*.
tar.gz
61 rm -f $2/jpeg
-*.
tar.gz
62 rm -f $2/tiff
-*.
tar.gz
64 rm -f $2/canvas
-*.
tar.gz
65 rm -f $2/contrib
-*.
tar.gz
66 rm -f $2/applet
-*.
tar.gz
67 rm -f $2/wxxrc
-*.
tar.gz
72 ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/makefile.rsp` > /tmp
/wxgen.txt
73 tar cvf
$2/wxWindows
-${WXVER}-gen.
tar -T /tmp
/wxgen.txt
74 gzip $2/wxWindows
-${WXVER}-gen.
tar
75 mv $2/wxWindows
-${WXVER}-gen.
tar.gz
$2/wxWindows
-${WXVER}-gen.tgz
78 ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/gtk.rsp $1/distrib/msw/makefile.rsp $1/distrib/msw/tiff.rsp $1/distrib/msw/jpeg.rsp` > /tmp
/wxgtk.txt
79 tar cvf
$2/wxGTK
-${WXVER}.
tar -T /tmp
/wxgtk.txt
80 gzip $2/wxGTK
-${WXVER}.
tar
83 ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/motif.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/ogl.rsp $1/distrib/msw/makefile.rsp $1/distrib/msw/tiff.rsp $1/distrib/msw/jpeg.rsp` > /tmp
/wxmotif.txt
84 tar cvf
$2/wxMotif
-${WXVER}.
tar -T /tmp
/wxmotif.txt
85 gzip $2/wxMotif
-${WXVER}.
tar
87 ### wxX: combined wxMotif and wxX11 distributions
88 ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/motif.rsp $1/distrib/msw/x11.rsp $1/distrib/msw/univ.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/ogl.rsp $1/distrib/msw/makefile.rsp $1/distrib/msw/tiff.rsp $1/distrib/msw/jpeg.rsp` | uniq > /tmp
/wxx.txt
89 tar cvf
$2/wxX11
-${WXVER}.
tar -T /tmp
/wxx.txt
90 gzip $2/wxX11
-${WXVER}.
tar
93 ls `cat $1/distrib/msw/msw.rsp $1/distrib/msw/vc.rsp $1/distrib/msw/bc.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/makefile.rsp $1/distrib/msw/tiff.rsp $1/distrib/msw/jpeg.rsp` > /tmp
/wxmsw.txt
94 tar cvf
$2/wxMSW
-${WXVER}.
tar -T /tmp
/wxmsw.txt
95 gzip $2/wxMSW
-${WXVER}.
tar
98 ls `cat $1/distrib/msw/docsrc.rsp` > /tmp
/docsrc.txt
99 tar cvf
$2/wxWindows
-${WXVER}-doc.
tar -T /tmp
/docsrc.txt
100 gzip $2/wxWindows
-${WXVER}-doc.
tar
103 ls `cat $1/distrib/msw/wx_html.rsp` > /tmp
/html.txt
104 tar cvf
$2/wxWindows
-${WXVER}-htm.
tar -T /tmp
/html.txt
105 gzip $2/wxWindows
-${WXVER}-htm.
tar
108 ls `cat $1/distrib/msw/wx_pdf.rsp` > /tmp
/pdf.txt
109 tar cvf
$2/wxWindows
-${WXVER}-pdf.
tar -T /tmp
/pdf.txt
110 gzip $2/wxWindows
-${WXVER}-pdf.
tar
113 #ls `cat $1/distrib/msw/stubs.rsp` > /tmp/stubs.txt
114 #tar cvf $2/wxWindows-${WXVER}-stubs.tar -T /tmp/stubs.txt
115 #gzip $2/wxWindows-${WXVER}-stubs.tar
118 ls `cat $1/distrib/msw/tex2rtf.rsp` > /tmp
/tex2rtf.txt
119 tar cvf
$2/tex2rtf2
-${WXVER}.
tar -T /tmp
/tex2rtf.txt
120 gzip $2/tex2rtf2
-${WXVER}.
tar
123 ls `cat $1/distrib/msw/ogl.rsp` > /tmp
/ogl.txt
124 tar cvf
$2/ogl3
-${WXVER}.
tar -T /tmp
/ogl.txt
125 gzip $2/ogl3
-${WXVER}.
tar
128 ls `cat $1/distrib/msw/jpeg.rsp` > /tmp
/jpeg.txt
129 tar cvf
$2/jpeg
-${WXVER}.
tar -T /tmp
/jpeg.txt
130 gzip $2/jpeg
-${WXVER}.
tar
133 ls `cat $1/distrib/msw/tiff.rsp` > /tmp
/tiff.txt
134 tar cvf
$2/tiff
-${WXVER}.
tar -T /tmp
/tiff.txt
135 gzip $2/tiff
-${WXVER}.
tar
137 # Copy readme and other files
138 copy
$1/docs
/readme.txt
$2/readme
-${WXVER}.txt
139 copy
$1/docs
/changes.txt
$2/changes
-${WXVER}.txt
140 copy
$1/docs
/mgl
/readme.txt
$2/readme_mgl
-${WXVER}.txt
141 copy
$1/docs
/mgl
/install.txt
$2/install_mgl
-${WXVER}.txt
142 copy
$1/docs
/x
11/readme.txt
$2/readme_x11
-${WXVER}.txt
143 copy
$1/docs
/x
11/readme
-nanox.txt
$2/readme_nanox
-${WXVER}.txt
144 copy
$1/docs
/x
11/install.txt
$2/install_x11
-${WXVER}.txt
145 copy
$1/docs
/motif
/readme.txt
$2/readme_motif
-${WXVER}.txt
146 copy
$1/docs
/motif
/install.txt
$2/install_motif
-${WXVER}.txt
147 copy
$1/docs
/msw
/readme.txt
$2/readme_msw
-${WXVER}.txt
148 copy
$1/docs
/msw
/install.txt
$2/install_msw
-${WXVER}.txt
149 copy
$1/docs
/gtk
/readme.txt
$2/readme_gtk
-${WXVER}.txt
150 copy
$1/docs
/gtk
/install.txt
$2/install_gtk
-${WXVER}.txt
151 copy
$1/docs
/mac
/readme.txt
$2/readme_mac
-${WXVER}.txt
152 copy
$1/docs
/mac
/install.txt
$2/install_mac
-${WXVER}.txt