]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tarwxmotif
added tech note about writing unit tests
[wxWidgets.git] / distrib / msw / tarwxmotif
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 WXVER=2.2.0
7 if [ $1 = "" ]
8 then
9 exit
10 fi
11
12 if [ $2 = "" ]
13 then
14 exit
15 fi
16
17 echo About to archive wxWindows:
18 echo From $1
19 echo To $2
20 echo CTRL-C if this is not correct.
21 read dummy
22
23 cd $1
24
25 echo Removing backup files...
26 rm *~ */*~ */*/*~ */*/*/*~ */*/*/*/*~
27
28 echo Setting permissions...
29 chmod a+x $1/configure $1/config.sub $1/config.guess $1/samples/configure $1/demos/configure $1/contrib/configure
30
31 rm -f $2/wxMotif-${WXVER}*.tgz
32 rm -f $2/wxWindows*.tgz
33 rm -f $2/tex2rtf2.tgz
34 rm -f $2/ogl3.tgz
35 rm -f $2/jpeg.tgz
36 rm -f $2/tiff.tgz
37
38 echo Tarring...
39
40 ### wxMotif
41 ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/motif.rsp $1/distrib/msw/makefile.rsp $1/distrib/msw/utilmake.rsp $1/distrib/msw/jpeg.rsp $1/distrib/msw/tiff.rsp $1/distrib/msw/wx_html.rsp $1/distrib/msw/tex2rtf.rsp $1/distrib/msw/utils.rsp` > /tmp/wxmotif.txt
42 tar cvf $2/wxMotif-${WXVER}.tar -T /tmp/wxmotif.txt
43 gzip $2/wxMotif-${WXVER}.tar
44 mv $2/wxMotif-${WXVER}.tar.gz $2/wxMotif-${WXVER}.tgz
45
46 ### HTML docs
47 ls `cat $1/distrib/msw/wx_html.rsp` > /tmp/html.txt
48 tar cvf $2/wxWindows-${WXVER}-HTML.tar -T /tmp/html.txt
49 gzip $2/wxWindows-${WXVER}-HTML.tar
50 mv $2/wxWindows-${WXVER}-HTML.tar.gz $2/wxWindows-${WXVER}-HTML.tgz
51
52 ### HTB (wxHTML Help) docs
53 ls `cat $1/distrib/msw/wx_htb.rsp` > /tmp/htb.txt
54 tar cvf $2/wxWindows-${WXVER}-HTB.tar -T /tmp/htb.txt
55 gzip $2/wxWindows-${WXVER}-HTB.tar
56 mv $2/wxWindows-${WXVER}-HTB.tar.gz $2/wxWindows-${WXVER}-HTB.tgz
57
58 ### PDF docs
59 ls `cat $1/distrib/msw/wx_pdf.rsp` > /tmp/pdf.txt
60 tar cvf $2/wxWindows-${WXVER}-PDF.tar -T /tmp/pdf.txt
61 gzip $2/wxWindows-${WXVER}-PDF.tar
62 mv $2/wxWindows-${WXVER}-PDF.tar.gz $2/wxWindows-${WXVER}-PDF.tgz
63
64 ### Stubs files
65 #ls `cat $1/distrib/msw/stubs.rsp` > /tmp/stubs.txt
66 #tar cvf $2/wxWindows-${WXVER}-stubs.tar -T /tmp/stubs.txt
67 #gzip $2/wxWindows-${WXVER}-stubs.tar
68 #mv $2/wxWindows-${WXVER}-stubs.tar.gz $2/wxWindows-${WXVER}-stubs.tgz
69
70 ### Tex2RTF
71 ls `cat $1/distrib/msw/tex2rtf.rsp` > /tmp/tex2rtf.txt
72 tar cvf $2/tex2rtf2.tar -T /tmp/tex2rtf.txt
73 gzip $2/tex2rtf2.tar
74 mv $2/tex2rtf2.tar.gz $2/tex2rtf2.tgz
75
76 ### OGL
77 ls `cat $1/distrib/msw/ogl.rsp` > /tmp/ogl.txt
78 tar cvf $2/ogl3.tar -T /tmp/ogl.txt
79 gzip $2/ogl3.tar
80 mv $2/ogl3.tar.gz $2/ogl3.tgz
81
82 ### JPEG
83 #ls `cat $1/distrib/msw/jpeg.rsp` > /tmp/jpeg.txt
84 #tar cvf $2/jpeg.tar -T /tmp/jpeg.txt
85 #gzip $2/jpeg.tar
86 #mv $2/jpeg.tar.gz $2/jpeg.tgz
87
88 ### TIFF
89 #ls `cat $1/distrib/msw/tiff.rsp` > /tmp/tiff.txt
90 #tar cvf $2/tiff.tar -T /tmp/tiff.txt
91 #gzip $2/tiff.tar
92 #mv $2/tiff.tar.gz $2/tiff.tgz
93
94 echo Done!