File: makedemo

package info (click to toggle)
wxwindows2.4 2.4.5.1.1%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 59,928 kB
  • ctags: 97,489
  • sloc: cpp: 610,309; ansic: 111,957; python: 103,357; makefile: 3,676; sh: 3,391; lex: 192; yacc: 128; xml: 95; pascal: 74
file content (41 lines) | stat: -rwxr-xr-x 1,039 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
#----------------------------------------------------------------------

if [ -z $1 ]; then
    echo "Please specify a version number on the command line."
    exit 1
fi

if [ ! -d wxPython ]; then
    echo "Please run this script from the root wxPython directory."
    exit 1
fi

mkdir _distrib_tgz
mkdir _distrib_tgz/wxPython-$1

cp -R demo _distrib_tgz/wxPython-$1
cp -R samples _distrib_tgz/wxPython-$1

# do some cleanup
rm -rf `find _distrib_tgz/wxPython-$1 -name CVS`
rm -f `find  _distrib_tgz/wxPython-$1 -name "*.pyc"`
rm -f `find  _distrib_tgz/wxPython-$1 -name .cvsignore`
rm -f `find  _distrib_tgz/wxPython-$1 -name "core*"`
rm -f `find  _distrib_tgz/wxPython-$1 -name wxPython`
rm -f `find  _distrib_tgz/wxPython-$1 -name "*.o"`
rm -f `find  _distrib_tgz/wxPython-$1 -name "*.so"`
rm -f `find  _distrib_tgz/wxPython-$1 -name "*~"`
rm -f `find  _distrib_tgz/wxPython-$1 -name ".#*"`

cd _distrib_tgz

tar cvf ../dist/wxPythonDemo-$1.tar wxPython-$1
gzip -9 ../dist/wxPythonDemo-$1.tar

cd ..
rm -r _distrib_tgz