]> git.saurik.com Git - wxWidgets.git/blob - distrib/scripts/setup_environ.sh
add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS...
[wxWidgets.git] / distrib / scripts / setup_environ.sh
1 #!/bin/bash
2
3 OLDDIR="$PWD"
4
5 # Install TaskRunner to manage the build process...
6 cd ../wxPython/distrib/all
7 sudo python2.4 setup.py install
8
9 cd $OLDDIR
10
11 BASE_CMD="wget"
12 if [ "$OSTYPE" = "darwin" ]; then
13 BASE_CMD="curl -LO"
14 fi
15
16 if which ls > /dev/null 2>&1; then echo YES; else echo NO; fi
17
18 if which bogus > /dev/null 2>&1; then echo YES; else echo NO; fi
19
20 # unix2dos is needed for the build process.
21 # this commonly only happens on Mac...
22 U2D_TARBALL="unix2dos-2.2.src.tar.gz"
23 U2D_URL="http://opendarwin.org/~olegb/src/$U2D_TARBALL"
24
25 CMD="$BASE_CMD $U2D_URL"
26 echo "$CMD"
27 $CMD
28
29 tar xzvf $U2D_TARBALL
30 cd unix2dos-2.2.src
31 ./configure
32 make
33 make install
34 cd ..
35
36
37 # Install ReleaseForge to manage the SF upload
38 RF_TARBALL="releaseforge-0.9.8.tar.gz"
39 RF_URL="http://voxel.dl.sourceforge.net/sourceforge/releaseforge/$RF_TARBALL"
40
41 if [ ! -d ./scripts/ReleaseForge ]; then
42 CMD="$BASE_CMD $RF_URL"
43 echo "$CMD"
44 $CMD
45
46 tar xzvf $RF_TARBALL
47
48 # There's one line of code that makes this not work from command line,
49 # and that's an import that is no longer used, so we'll remove it. :-)
50 cd "releaseforge-0.9.8"
51 sed "s/from workerThread/\#from workerThread/" < ReleaseForge/sfcomm.py > temp
52 mv temp ReleaseForge/sfcomm.py
53
54 cd ..
55 mv releaseforge-0.9.8/ReleaseForge ./scripts/ReleaseForge
56
57 rm -rf releaseforge*
58 fi
59
60 BF_TARBALL="bakefile-0.2.0.tar.gz"
61 BF_URL="http://umn.dl.sourceforge.net/sourceforge/bakefile/$BF_TARBALL"
62
63 if which bakefile; then
64
65 else
66 CMD="$BASE_CMD $BF_URL"
67 echo "$CMD"
68 $CMD
69
70 tar xzvf $BF_TARBALL
71 cd bakefile-0.2.0
72 ./configure
73 make
74 sudo make install
75 fi