Confirmed users
3,990
edits
No edit summary |
|||
| Line 1: | Line 1: | ||
I am going to list in here different type of scripts | I am going to list in here different type of scripts | ||
== Install python, zope and buildbot == | |||
<pre> | |||
#!/bin/sh | |||
#NOTE: This is a one time run script, there should be another one for bringing | |||
#the tool chain to the latest | |||
PROFILE=/Users/mozilla/.bash_profile | |||
#. grab_files.sh | |||
################## | |||
# create directories | |||
mkdir -p /tools/dist/logs | |||
mkdir -p /builds/logs | |||
#initial setup steps | |||
export PYTHONPATH="/tools/python" | |||
export PATH="/tools/python/bin:$PATH" | |||
ln -s /tools/gcc-4.1.1 /tools/gcc | |||
# using dist to hold downloaded packages | |||
cd /tools/dist | |||
wget http://python.org/ftp/python/2.5.2/Python-2.5.2.tar.bz2 | |||
wget http://pypi.python.org/packages/source/z/zope.interface/zope.interface-3.4.1.tar.gz#md5=b085f4a774adab688e037ad32fbbf08e | |||
wget http://tmrc.mit.edu/mirror/twisted/Twisted/8.0/Twisted-8.0.1.tar.bz2#md5=1ba5bb530356a867cfee35e65e58a43c | |||
cvs -d ":pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot" co -d buildbot-0.7.7 mozilla/tools/buildbot | |||
#. unpack_files.sh | |||
#################### | |||
cd /tools/dist | |||
tar xjfv Python-2.5.2.tar.bz2 | |||
tar xzfv zope.interface-3.4.1.tar.gz | |||
tar xjfv Twisted-8.0.1.tar.bz2 | |||
#. install_python.sh | |||
###################### | |||
cd /tools/dist/Python-2.5.2 | |||
./configure --prefix=/tools/python-2.5.2 2>&1 | tee /tools/dist/logs/python2.5.2-configure.log | |||
make 2>&1 | tee /tools/dist/logs/python2.5.2-make.log | |||
make install 2>&1 | tee /tools/dist/logs/python2.5.2-make_install.log | |||
cd /tools | |||
if [[ -h python ]]; then | |||
rm -f python | |||
fi | |||
ln -s python-2.5.2 python | |||
export PYTHONHOME="/tools/python" | |||
export PATH="/tools/python/bin:$PATH" | |||
#. install_zope.sh | |||
#################### | |||
cd /tools/dist/zope.interface-3.4.1 | |||
python setup.py install --prefix=/tools/zope-interface-3.4.1 | |||
cd /tools | |||
if [[ -h zope-interface ]]; then | |||
rm -f zope-interface | |||
fi | |||
ln -s zope-interface-3.4.1 zope-interface | |||
export PYTHONPATH="/tools/zope-interface/lib/python2.5/site-packages/:$PYTHONPATH" | |||
#. install_twisted.sh | |||
####################### | |||
cd /tools/dist/Twisted-8.0.1 | |||
python setup.py install --prefix=/tools/twisted-8.0.1 | |||
cd /tools | |||
if [[ -h twisted ]]; then | |||
rm -f twisted | |||
fi | |||
ln -s twisted-8.0.1 twisted | |||
export PYTHONPATH="/tools/twisted/lib/python2.5/site-packages:$PYTHONPATH" | |||
#. install_buildbot.sh | |||
######################## | |||
pushd /tools/dist/buildbot-0.7.7 | |||
python setup.py install --prefix=/tools/buildbot-trunk | |||
cd /tools | |||
if [[ -h buildbot ]]; then | |||
rm -f buildbot | |||
fi | |||
ln -s buildbot-trunk buildbot | |||
mkdir buildbotcustom | |||
#line added by armen | |||
cd buildbotcustom | |||
cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -d buildbotcustom mozilla/tools/buildbotcustom | |||
#. post_install.sh | |||
#################### | |||
# Armen - added $PROFILE | |||
echo 'export PYTHONHOME="/tools/python"' >> $PROFILE | |||
echo 'export PYTHONPATH="/tools/buildbotcustom:/tools/buildbot/lib/python2.5/site-packages:/tools/twisted/lib/python2.5/site-packages:/tools/twisted-core/lib/python2.5/site-packages:/tools/zope-interface/lib/python2.5/site-packages/"' >> $PROFILE | |||
echo 'export PATH="/opt/local/bin:/tools/buildbot/bin:/tools/twisted/bin:/tools/twisted-core/bin:$PYTHONHOME/bin:$PATH"' >> $PROFILE | |||
cat $PROFILE | |||
#. cleanup.sh | |||
############### | |||
cd /tools/dist | |||
rm -rf tools/python-2.5.1 Python-2.5.2 Python-2.5.2.tar.bz2 | |||
rm -rf zope.interface-3.4.1.tar.gz zope.interface-3.4.1 | |||
rm -rf twisted-2.4.0 twisted-core-2.4.0 twisted-core Twisted-8.0.1 Twisted-8.0.1.tar.bz2 | |||
rm -rf tools/buildbot-076 buildbot-0.7.7 | |||
echo "All done." | |||
</pre> | |||
== Generate multiple repositories without an apache or lighthttp server == | == Generate multiple repositories without an apache or lighthttp server == | ||
#!/bin/bash | #!/bin/bash | ||