Simple install bash script for newLISP on Amazon EC2

Q&A's, tips, howto's
Locked
hilti
Posts: 140
Joined: Sun Apr 19, 2009 10:09 pm
Location: Hannover, Germany
Contact:

Simple install bash script for newLISP on Amazon EC2

Post by hilti »

Hi Guys!

I'm providing my script to install newLISP on an Amazon EC2 instance. It installs all depending libraries and automatically installs newLISP. Tested on EC2 micro instance with Ubuntu AMI.

Cheers
Hilti

Code: Select all

#!/bin/bash
# Simple bash script for installing newLISP on Amazon EC2, Ubuntu 12.04 AMI
# Author: Marc Hildmann, July 2012
# 

read -p "Install necessary default building libraries (y/n)?" CONT
if [ "$CONT" == "y" ]; then
  sudo apt-get install libffi-dev build-essential libreadline-dev
else
  echo "No libraries were installed.";
fi

read -p "Now changing to /tmp and download newLISP (y/n)?" CONT
if [ "$CONT" == "y" ]; then
  	cd /tmp 
	wget http://www.newlisp.org/downloads/newlisp-10.4.3.tgz
	tar xvfz newlisp-10.4.3.tgz	
	cd newlisp-10.4.3		
else
  echo "Nothing happened.";
fi

read -p "Build and install newLISP (y/n)?" CONT

if [ "$CONT" == "y" ]; then
	make
	sudo make install
	echo "### Installation finished ###"	
else
  echo "Nothing happened.";
fi
--()o Dragonfly web framework for newLISP
http://dragonfly.apptruck.de

Locked