]> git.saurik.com Git - wxWidgets.git/blame_incremental - distrib/msw/tardist
Added buttons to allow a dump of DB DATATYPES and DB DIAGNOSTIC info via wxLogMessage...
[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/wxWindows-${WXVER}*.tgz
58rm -f $2/tex2rtf2.tgz
59rm -f $2/ogl3.tgz
60rm -f $2/jpeg.tgz
61rm -f $2/tiff.tgz
62
63echo Tarring...
64
65### Generic
66ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/makefile.rsp` > /tmp/wxgen.txt
67tar cvf $2/wxWindows-${WXVER}-gen.tar -T /tmp/wxgen.txt
68gzip $2/wxWindows-${WXVER}-gen.tar
69mv $2/wxWindows-${WXVER}-gen.tar.gz $2/wxWindows-${WXVER}-gen.tgz
70
71### wxGTK
72ls `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` > /tmp/wxgtk.txt
73tar cvf $2/wxWindows-${WXVER}-gtk.tar -T /tmp/wxgtk.txt
74gzip $2/wxWindows-${WXVER}-gtk.tar
75mv $2/wxWindows-${WXVER}-gtk.tar.gz $2/wxWindows-${WXVER}-gtk.tgz
76
77### wxMotif
78ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/motif.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/makefile.rsp` > /tmp/wxmotif.txt
79tar cvf $2/wxWindows-${WXVER}-mot.tar -T /tmp/wxmotif.txt
80gzip $2/wxWindows-${WXVER}-mot.tar
81mv $2/wxWindows-${WXVER}-mot.tar.gz $2/wxWindows-${WXVER}-mot.tgz
82
83### wxMSW
84ls `cat $1/distrib/msw/msw.rsp $1/distrib/msw/vc.rsp` > /tmp/wxmsw.txt
85tar cvf $2/wxWindows-${WXVER}-msw.tar -T /tmp/wxmsw.txt
86gzip $2/wxWindows-${WXVER}-msw.tar
87mv $2/wxWindows-${WXVER}-msw.tar.gz $2/wxWindows-${WXVER}-msw.tgz
88
89### Doc sources
90ls `cat $1/distrib/msw/docsrc.rsp` > /tmp/docsrc.txt
91tar cvf $2/wxWindows-${WXVER}-doc.tar -T /tmp/docsrc.txt
92gzip $2/wxWindows-${WXVER}-doc.tar
93mv $2/wxWindows-${WXVER}-doc.tar.gz $2/wxWindows-${WXVER}-doc.tgz
94
95### HTML docs
96ls `cat $1/distrib/msw/wx_html.rsp` > /tmp/html.txt
97tar cvf $2/wxWindows-${WXVER}-htm.tar -T /tmp/html.txt
98gzip $2/wxWindows-${WXVER}-htm.tar
99mv $2/wxWindows-${WXVER}-htm.tar.gz $2/wxWindows-${WXVER}-htm.tgz
100
101### PDF docs
102ls `cat $1/distrib/msw/wx_pdf.rsp` > /tmp/pdf.txt
103tar cvf $2/wxWindows-${WXVER}-pdf.tar -T /tmp/pdf.txt
104gzip $2/wxWindows-${WXVER}-pdf.tar
105mv $2/wxWindows-${WXVER}-pdf.tar.gz $2/wxWindows-${WXVER}-pdf.tgz
106
107### Stubs files
108ls `cat $1/distrib/msw/stubs.rsp` > /tmp/stubs.txt
109tar cvf $2/wxWindows-${WXVER}-stubs.tar -T /tmp/stubs.txt
110gzip $2/wxWindows-${WXVER}-stubs.tar
111mv $2/wxWindows-${WXVER}-stubs.tar.gz $2/wxWindows-${WXVER}-stubs.tgz
112
113### Tex2RTF
114ls `cat $1/distrib/msw/tex2rtf.rsp` > /tmp/tex2rtf.txt
115tar cvf $2/tex2rtf2.tar -T /tmp/tex2rtf.txt
116gzip $2/tex2rtf2.tar
117mv $2/tex2rtf2.tar.gz $2/tex2rtf2.tgz
118
119### OGL
120ls `cat $1/distrib/msw/ogl.rsp` > /tmp/ogl.txt
121tar cvf $2/ogl3.tar -T /tmp/ogl.txt
122gzip $2/ogl3.tar
123mv $2/ogl3.tar.gz $2/ogl3.tgz
124
125### JPEG
126ls `cat $1/distrib/msw/jpeg.rsp` > /tmp/jpeg.txt
127tar cvf $2/jpeg.tar -T /tmp/jpeg.txt
128gzip $2/jpeg.tar
129mv $2/jpeg.tar.gz $2/jpeg.tgz
130
131### TIFF
132ls `cat $1/distrib/msw/tiff.rsp` > /tmp/tiff.txt
133tar cvf $2/tiff.tar -T /tmp/tiff.txt
134gzip $2/tiff.tar
135mv $2/tiff.tar.gz $2/tiff.tgz
136
137echo Done!