]> git.saurik.com Git - wxWidgets.git/blame - distrib/scripts/setup_environ.sh
remove extraneous semicolons
[wxWidgets.git] / distrib / scripts / setup_environ.sh
CommitLineData
03a2668f
KO
1#!/bin/bash
2
3OLDDIR="$PWD"
4
5# Install TaskRunner to manage the build process...
6cd ../wxPython/distrib/all
7sudo python2.4 setup.py install
8
9cd $OLDDIR
10
11BASE_CMD="wget"
12if [ "$OSTYPE" = "darwin" ]; then
13 BASE_CMD="curl -LO"
14fi
15
16if which ls > /dev/null 2>&1; then echo YES; else echo NO; fi
17
18if 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...
22U2D_TARBALL="unix2dos-2.2.src.tar.gz"
23U2D_URL="http://opendarwin.org/~olegb/src/$U2D_TARBALL"
24
25CMD="$BASE_CMD $U2D_URL"
26echo "$CMD"
27$CMD
28
29tar xzvf $U2D_TARBALL
30cd unix2dos-2.2.src
31./configure
32make
33make install
34cd ..
35
36
37# Install ReleaseForge to manage the SF upload
38RF_TARBALL="releaseforge-0.9.8.tar.gz"
39RF_URL="http://voxel.dl.sourceforge.net/sourceforge/releaseforge/$RF_TARBALL"
40
41if [ ! -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*
58fi
59
60BF_TARBALL="bakefile-0.2.0.tar.gz"
61BF_URL="http://umn.dl.sourceforge.net/sourceforge/bakefile/$BF_TARBALL"
62
63if which bakefile; then
64
65else
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
75fi