]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tardist
Added 'tardist' script for creating .tgz archives of wxWin; cured wxExecute
[wxWidgets.git] / distrib / msw / tardist
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 init=""
6 if [ $1 = "" ]
7 then
8 exit
9 fi
10
11 if [ $2 = "" ]
12 then
13 exit
14 fi
15
16 echo About to archive wxWindows:
17 echo From $1
18 echo To $2
19 echo CTRL-C if this is not correct.
20 read dummy
21
22 cd $1
23
24 echo Removing backup files...
25 rm *~ */*~ */*/*~ */*/*/*~ */*/*/*/*~
26
27 rm -f $2/wxgtk.tar.gz
28 rm -f $2/wxmotif.tar.gz
29 rm -f $2/wxdocsrc.tar.gz
30 rm -f $2/wxhtml.tar.gz
31 rm -f $2/wxpdf.tar.gz
32 rm -f $2/wxstubs.tar.gz
33 rm -f $2/tex2rtf.tar.gz
34 rm -f $2/ogl.tar.gz
35 rm -f $2/wxtree.tar.gz
36 rm -f $2/glcanvas.tar.gz
37
38 echo Tarring...
39
40 ### wxGTK
41 ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/gtk.rsp` > /tmp/wxgtk.txt
42 tar cvf $2/wxgtk.tar -T /tmp/wxgtk.txt
43 gzip $2/wxgtk.tar
44 mv $2/wxgtk.tar.gz $2/wxgtk.tgz
45
46 ### wxMotif
47 ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/motif.rsp` > /tmp/wxmotif.txt
48 tar cvf $2/wxmotif.tar -T /tmp/wxmotif.txt
49 gzip $2/wxmotif.tar
50 mv $2/wxmotif.tar.gz $2/wxmotif.tgz
51
52 ### Doc sources
53 ls `cat $1/distrib/msw/docsrc.rsp` > /tmp/docsrc.txt
54 tar cvf $2/wxdocsrc.tar -T /tmp/docsrc.txt
55 gzip $2/wxdocsrc.tar
56 mv $2/wxdocsrc.tar.gz $2/wxdocsrc.tgz
57
58 ### HTML docs
59 ls `cat $1/distrib/msw/wx_html.rsp` > /tmp/html.txt
60 tar cvf $2/wxhtml.tar -T /tmp/html.txt
61 gzip $2/wxhtml.tar
62 mv $2/wxhtml.tar.gz $2/wxhtml.tgz
63
64 ### PDF docs
65 ls `cat $1/distrib/msw/wx_pdf.rsp` > /tmp/pdf.txt
66 tar cvf $2/wxpdf.tar -T /tmp/pdf.txt
67 gzip $2/wxpdf.tar
68 mv $2/wxpdf.tar.gz $2/wxpdf.tgz
69
70 ### Stubs files
71 ls `cat $1/distrib/msw/stubs.rsp` > /tmp/stubs.txt
72 tar cvf $2/wxstubs.tar -T /tmp/stubs.txt
73 gzip $2/wxstubs.tar
74 mv $2/wxstubs.tar.gz $2/wxstubs.tgz
75
76 ### Tex2RTF
77 ls `cat $1/distrib/msw/tex2rtf.rsp` > /tmp/tex2rtf.txt
78 tar cvf $2/tex2rtf.tar -T /tmp/tex2rtf.txt
79 gzip $2/tex2rtf.tar
80 mv $2/tex2rtf.tar.gz $2/tex2rtf.tgz
81
82 ### OGL
83 ls `cat $1/distrib/msw/ogl.rsp` > /tmp/ogl.txt
84 tar cvf $2/ogl.tar -T /tmp/ogl.txt
85 gzip $2/ogl.tar
86 mv $2/ogl.tar.gz $2/ogl.tgz
87
88 ### wxGLCanvas
89 ls `cat $1/distrib/msw/glcanvas.rsp` > /tmp/glcanvas.txt
90 tar cvf $2/glcanvas.tar -T /tmp/glcanvas.txt
91 gzip $2/glcanvas.tar
92 mv $2/glcanvas.tar.gz $2/glcanvas.tgz
93
94 ### wxTreeLayout
95 ls `cat $1/distrib/msw/wxtree.rsp` > /tmp/wxtree.txt
96 tar cvf $2/wxtree.tar -T /tmp/wxtree.txt
97 gzip $2/wxtree.tar
98 mv $2/wxtree.tar.gz $2/wxtree.tgz
99
100 echo Done!