Skip to content

Commit

Permalink
Updating from remote
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Robson committed Aug 26, 2011
2 parents 1b04a67 + 7084222 commit 821ce29
Show file tree
Hide file tree
Showing 9 changed files with 176 additions and 22 deletions.
Empty file modified install-erlang14b03.sh 100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions install-mono.sh
@@ -1,6 +1,6 @@
cd /src
mkdir mono-2.10
cd mono-2.10
cd /
sudo mkdir mono-2.10
sudo cd mono-2.10

sudo wget --no-check-certificate https://github.com/nathanb/iws-snippets/raw/master/mono-install-scripts/ubuntu/install_mono-2.10.sh

Expand Down
12 changes: 6 additions & 6 deletions install-monodevelop.sh
@@ -1,7 +1,7 @@
cd /src
mkdir monodevelop
cd monodevelop
sudo cd /
sudo mkdir monodevelop
sudo cd monodevelop

sudo wget --no-check-certificate https://github.com/nathanb/iws-snippets/raw/master/mono-install-scripts/ubuntu/install_monodevelop-2.4.2.sh
sudo chmod 755 install_monodevelop-2.4.2.sh
sudo ./install_monodevelop-2.4.2.sh
sudo wget --no-check-certificate https://github.com/nathanb/iws-snippets/raw/master/mono-install-scripts/ubuntu/install_monodevelop-2.5.92.sh
sudo chmod 755 install_monodevelop-2.5.92.sh
sudo ./install_monodevelop-2.5.92.sh
12 changes: 12 additions & 0 deletions install-node.bak
@@ -0,0 +1,12 @@
cd /src
mkdir node
cd node
sudo apt-get install -y libssl-dev
sudo wget http://nodejs.org/dist/node-v0.4.8.tar.gz
tar -xvzf node-v0.4.8.tar.gz
cd node-v0.4.8
sudo ./configure
sudo make
sudo make install
#echo PATH=$PATH:/opt/node-0.4.8 >> ~/.bashrc
#source ~/.bashrc
11 changes: 10 additions & 1 deletion install-npm.sh
@@ -1,2 +1,11 @@
<<<<<<< HEAD
sudo apt-get install curl
sudo curl http://npmjs.org/install.sh | sh
sudo curl http://npmjs.org/install.sh | sh
=======
cd /src
mkdir npm
git clone http://github.com/isaacs/npm.git
cd npm
sudo make install
sudo npm install nave -g
>>>>>>> 708422280ced8937e4f55288ed99d4b969813404
11 changes: 0 additions & 11 deletions install-rabbitmq-plugins.sh

This file was deleted.

11 changes: 10 additions & 1 deletion install-rabbitmq.sh
Expand Up @@ -8,6 +8,7 @@ sudo apt-get -fy install
sudo wget http://www.rabbitmq.com/releases/rabbitmq-server/v2.5.1/rabbitmq-server_2.5.1-1_all.deb

sudo dpkg -i rabbitmq-server_2.5.1-1_all.deb
<<<<<<< HEAD
sudo /etc/init.d/rabbitmq-install stop

cd /usr/lib/rabbitmq/lib/rabbitmq_server-2.5.1/plugins
Expand All @@ -16,9 +17,17 @@ cd /usr/lib/rabbitmq/lib/rabbitmq_server-2.5.1/plugins

sudo wget http://www.rabbitmq.com/releases/plugins/v2.5.1/mochiweb-2.5.1.ez
sudo wget http://www.rabbitmq.com/releases/plugins/v2.5.1/webmachine-2.5.1.ez
=======
sudo rabbitmqctl stop

cd /usr/lib/rabbitmq/lib/rabbitmq_server-2.5.1/plugins

sudo wget http://www.rabbitmq.com/releases/plugins/v2.5.1/mochiweb-1.3-rmq2.5.1-git9a53dbd.ez
sudo wget http://www.rabbitmq.com/releases/plugins/v2.5.1/webmachine-1.7.0-rmq2.5.1-hg0c4b60a.ez
>>>>>>> 708422280ced8937e4f55288ed99d4b969813404
sudo wget http://www.rabbitmq.com/releases/plugins/v2.5.1/amqp_client-2.5.1.ez
sudo wget http://www.rabbitmq.com/releases/plugins/v2.5.1/rabbitmq_mochiweb-2.5.1.ez
sudo wget http://www.rabbitmq.com/releases/plugins/v2.5.1/rabbitmq_management_agent-2.5.1.ez
sudo wget http://www.rabbitmq.com/releases/plugins/v2.5.1/rabbitmq_management-2.5.1.ez

sudo /etc/init.d/rabbitmq-install start
sudo /etc/init.d/rabbitmq-server start
124 changes: 124 additions & 0 deletions install_monodevelop-2.5.92.sh
@@ -0,0 +1,124 @@
#!/bin/bash -e

TOPDIR=$(pwd)
BUILDDIR=$TOPDIR/build
PREFIX=/opt/mono-2.10

export PATH=$PREFIX/bin:$PATH
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH


echo "updating existing system"
sudo apt-get update
sudo apt-get upgrade -y

echo "installing prerequisites"
sudo apt-get install -y build-essential libc6-dev g++ gcc libglib2.0-dev pkg-config git-core apache2 apache2-threaded-dev bison gettext autoconf automake libtool libpango1.0-dev libatk1.0-dev libgtk2.0-dev libtiff4-dev libgif-dev libglade2-dev gnome-devel libgnomecanvas2-dev libgnomeui-dev xulrunner-1.9.2-dev

mkdir -p $BUILDDIR

echo
echo "downloading mono packages"
echo

cd $BUILDDIR

PACKAGES=("mono-addins-0.6"
"mono-debugger-2.10"
"mono-tools-2.10"
"gnome-sharp-2.24.1"
"monodevelop-2.5.92"
"monodevelop-debugger-gdb-2.5.92"
"monodevelop-database-2.5.92"
"gluezilla-2.6"
)

URLS=("http://ftp.novell.com/pub/mono/sources/mono-addins/mono-addins-0.6.tar.bz2"
"http://ftp.novell.com/pub/mono/sources/mono-debugger/mono-debugger-2.10.tar.bz2"
"http://ftp.novell.com/pub/mono/sources/mono-tools/mono-tools-2.10.tar.bz2"
"http://ftp.novell.com/pub/mono/sources/gnome-sharp2/gnome-sharp-2.24.1.tar.bz2"
"http://monodevelop.com/files/Linux/tarballs/monodevelop-2.5.92.tar.bz2"
"http://monodevelop.com/files/Linux/tarballs/monodevelop-debugger-gdb-2.5.92.tar.bz2"
"http://monodevelop.com/files/Linux/tarballs/monodevelop-database-2.5.92.tar.bz2"
"http://ftp.novell.com/pub/mono/sources/gluezilla/gluezilla-2.6.tar.bz2"
)

echo Downloading
count=${#PACKAGES[@]}
index=0
while [ "$index" -lt "$count" ]
do
#only download it if you don't already have it.
if [ ! -f "${PACKAGES[$index]}.tar" ]
then
wget "${URLS[@]:$index:1}"
fi
if [ -f "${PACKAGES[$index]}.tar.bz2" ]
then
bunzip2 -df "${PACKAGES[$index]}.tar.bz2"
fi
if [ -f "${PACKAGES[$index]}.tar" ]
then
tar -xvf "${PACKAGES[$index]}.tar"
fi

let "index = $index + 1"
done

echo
echo "Building commenting tool for broken tests."
echo

COMMENTCS="$TOPDIR/comment-lines.cs"
COMMENTEXE="$TOPDIR/comment-lines.exe"

echo "using System; using System.Linq; using System.Collections.Generic; using System.Text; using System.IO; namespace FixGnomeSharp { public class Program { public static int Main(string[] args) { string fileName = null; string[] sLines = null; int[] lines = null; if (args != null) { foreach (var arg in args) { if (arg.StartsWith(\"-f:\") && arg.Length > 3) fileName = arg.Substring(3); if (arg.StartsWith(\"-l:\") && arg.Length > 3) { sLines = arg.Substring(3).Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); lines = new int[sLines.Length]; for (int ix = 0; ix < sLines.Length; ix++) lines[ix] = int.Parse(sLines[ix]); } } } if (lines == null || lines.Length == 0 || fileName == null || !File.Exists(fileName)) { PrintUsage(); return 1; } /*comment line 221, 449 and 450*/ using (var ms = new MemoryStream()) { using (var writer = new StreamWriter(ms, new UTF8Encoding(false, false))) { using (var fileStream = File.OpenRead(fileName)) { using (var reader = new StreamReader(fileStream, new UTF8Encoding(false, false))) { int ix = 1; while (!reader.EndOfStream) { var line = reader.ReadLine(); if (lines.Contains(ix)) writer.Write('#'); writer.Write(line + '\n'); ix++; } } } } File.WriteAllBytes(fileName, ms.ToArray()); } return 0; } static void PrintUsage() { Console.WriteLine(\"Cannot comment without both arguments. Usage: comment-lines -f:FILE -l:LINE#[,LINE#...]\"); } } }" > "$COMMENTCS"

if [ -f "$COMMENTCS" ]
then
gmcs -out:$COMMENTEXE $COMMENTCS
fi

echo
echo "building mono packages"
echo

for i in "${PACKAGES[@]}"
do
cd $BUILDDIR/$i
./configure --prefix=$PREFIX

# need to comment out a few lines in gnome-sharp due to a test bug.
if [ $i == "gnome-sharp-2.24.1" ]
then
mono $COMMENTEXE -f:$BUILDDIR/$i/sample/gnomevfs/Makefile -l:221,449,450
fi

make
sudo make install
done

cd $TOPDIR
rm comment-lines*

echo "creating a launcher in $TOPDIR"

echo "#!/bin/bash
MONO_PREFIX=$PREFIX
GNOME_PREFIX=/usr
export DYLD_LIBRARY_FALLBACK_PATH=$MONO_PREFIX/lib:$DYLD_LIBRARY_FALLBACK_PATH
export LD_LIBRARY_PATH=$MONO_PREFIX/lib:$LD_LIBRARY_PATH
export C_INCLUDE_PATH=$MONO_PREFIX/include:$GNOME_PREFIX/include
export ACLOCAL_PATH=$MONO_PREFIX/share/aclocal
export PKG_CONFIG_PATH=$MONO_PREFIX/lib/pkgconfig:$GNOME_PREFIX/lib/pkgconfig
export PATH=$MONO_PREFIX/bin:$PATH
monodevelop" > "$TOPDIR/monodevelop-launcher.sh"

chmod 755 "$TOPDIR/monodevelop-launcher.sh"

echo
echo "done"


11 changes: 11 additions & 0 deletions monodevelop-launcher.sh
@@ -0,0 +1,11 @@
#!/bin/bash
MONO_PREFIX=/opt/mono-2.10
GNOME_PREFIX=/usr
export DYLD_LIBRARY_FALLBACK_PATH=/lib:
export LD_LIBRARY_PATH=/lib:/opt/mono-2.10/lib:
export C_INCLUDE_PATH=/include:/include
export ACLOCAL_PATH=/share/aclocal
export PKG_CONFIG_PATH=/lib/pkgconfig:/lib/pkgconfig
export PATH=/bin:/opt/mono-2.10/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin

monodevelop

0 comments on commit 821ce29

Please sign in to comment.