]> git.saurik.com Git - wxWidgets.git/blame_incremental - distrib/msw/tardist
Added wxX11 to readme
[wxWidgets.git] / distrib / msw / tardist
... / ...
CommitLineData
1#!/bin/sh
2# tardist: make up a tar.gz distribution of wxWindows 2
3# Supply a source (e.g. ~/wx2) and destination (e.g. ~/wx2/deliver)
4
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
8# blank lines.
9
10expandlines()
11{
12 toexpand=$1
13 outputfile=$2
14
15 rm -f $outputfile
16 touch $outputfile
17 for line in `cat $toexpand` ; do
18 if [ "$line" != "" ]; then
19 ls $line >> $outputfile
20 fi
21 done
22}
23
24
25init=""
26if [ "$1" = "" ]
27then
28 echo Usage: tardist wx-dir output-dir version
29 exit
30fi
31
32if [ "$2" = "" ]
33then
34 echo Usage: tardist wx-dir output-dir version
35 exit
36fi
37
38if [ "$3" = "" ]
39then
40 echo Usage: tardist wx-dir output-dir version
41 exit
42fi
43
44WXVER=$3
45
46echo About to archive wxWindows:
47echo From $1
48echo To $2
49echo CTRL-C if this is not correct.
50read dummy
51
52cd $1
53
54echo Removing backup files...
55rm *~ */*~ */*/*~ */*/*/*~ */*/*/*/*~
56
57rm -f $2/wx*-${WXVER}*.tar.gz
58rm -f $2/tex2rtf2-*.tar.gz
59rm -f $2/dialoged-*.tar.gz
60rm -f $2/ogl3-*.tar.gz
61rm -f $2/jpeg-*.tar.gz
62rm -f $2/tiff-*.tar.gz
63rm -f $2/stc-*.tar.gz
64rm -f $2/canvas-*.tar.gz
65rm -f $2/contrib-*.tar.gz
66rm -f $2/applet-*.tar.gz
67rm -f $2/wxxrc-*.tar.gz
68
69echo Tarring...
70
71### Generic
72ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/makefile.rsp` > /tmp/wxgen.txt
73tar cvf $2/wxWindows-${WXVER}-gen.tar -T /tmp/wxgen.txt
74gzip $2/wxWindows-${WXVER}-gen.tar
75mv $2/wxWindows-${WXVER}-gen.tar.gz $2/wxWindows-${WXVER}-gen.tgz
76
77### wxGTK
78ls `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
79tar cvf $2/wxGTK-${WXVER}.tar -T /tmp/wxgtk.txt
80gzip $2/wxGTK-${WXVER}.tar
81
82### wxMotif
83ls `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
84tar cvf $2/wxMotif-${WXVER}.tar -T /tmp/wxmotif.txt
85gzip $2/wxMotif-${WXVER}.tar
86
87### wxX: combined wxMotif and wxX11 distributions
88ls `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
89tar cvf $2/wxX11-${WXVER}.tar -T /tmp/wxx.txt
90gzip $2/wxX11-${WXVER}.tar
91
92### wxMSW
93ls `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
94tar cvf $2/wxMSW-${WXVER}.tar -T /tmp/wxmsw.txt
95gzip $2/wxMSW-${WXVER}.tar
96
97### Doc sources
98ls `cat $1/distrib/msw/docsrc.rsp` > /tmp/docsrc.txt
99tar cvf $2/wxWindows-${WXVER}-doc.tar -T /tmp/docsrc.txt
100gzip $2/wxWindows-${WXVER}-doc.tar
101
102### HTML docs
103ls `cat $1/distrib/msw/wx_html.rsp` > /tmp/html.txt
104tar cvf $2/wxWindows-${WXVER}-htm.tar -T /tmp/html.txt
105gzip $2/wxWindows-${WXVER}-htm.tar
106
107### PDF docs
108ls `cat $1/distrib/msw/wx_pdf.rsp` > /tmp/pdf.txt
109tar cvf $2/wxWindows-${WXVER}-pdf.tar -T /tmp/pdf.txt
110gzip $2/wxWindows-${WXVER}-pdf.tar
111
112### Stubs files
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
116
117### Tex2RTF
118ls `cat $1/distrib/msw/tex2rtf.rsp` > /tmp/tex2rtf.txt
119tar cvf $2/tex2rtf2-${WXVER}.tar -T /tmp/tex2rtf.txt
120gzip $2/tex2rtf2-${WXVER}.tar
121
122### OGL
123ls `cat $1/distrib/msw/ogl.rsp` > /tmp/ogl.txt
124tar cvf $2/ogl3-${WXVER}.tar -T /tmp/ogl.txt
125gzip $2/ogl3-${WXVER}.tar
126
127### JPEG
128ls `cat $1/distrib/msw/jpeg.rsp` > /tmp/jpeg.txt
129tar cvf $2/jpeg-${WXVER}.tar -T /tmp/jpeg.txt
130gzip $2/jpeg-${WXVER}.tar
131
132### TIFF
133ls `cat $1/distrib/msw/tiff.rsp` > /tmp/tiff.txt
134tar cvf $2/tiff-${WXVER}.tar -T /tmp/tiff.txt
135gzip $2/tiff-${WXVER}.tar
136
137# Copy readme and other files
138copy $1/docs/readme.txt $2/readme-${WXVER}.txt
139copy $1/docs/changes.txt $2/changes-${WXVER}.txt
140copy $1/docs/mgl/readme.txt $2/readme_mgl-${WXVER}.txt
141copy $1/docs/mgl/install.txt $2/install_mgl-${WXVER}.txt
142copy $1/docs/x11/readme.txt $2/readme_x11-${WXVER}.txt
143copy $1/docs/x11/readme-nanox.txt $2/readme_nanox-${WXVER}.txt
144copy $1/docs/x11/install.txt $2/install_x11-${WXVER}.txt
145copy $1/docs/motif/readme.txt $2/readme_motif-${WXVER}.txt
146copy $1/docs/motif/install.txt $2/install_motif-${WXVER}.txt
147copy $1/docs/msw/readme.txt $2/readme_msw-${WXVER}.txt
148copy $1/docs/msw/install.txt $2/install_msw-${WXVER}.txt
149copy $1/docs/gtk/readme.txt $2/readme_gtk-${WXVER}.txt
150copy $1/docs/gtk/install.txt $2/install_gtk-${WXVER}.txt
151copy $1/docs/mac/readme.txt $2/readme_mac-${WXVER}.txt
152copy $1/docs/mac/install.txt $2/install_mac-${WXVER}.txt
153
154echo Done!