source: branches/locker-dev/locker/bin/scripts-start @ 2285

Last change on this file since 2285 was 2285, checked in by ezyang, 12 years ago
Remove Django as it is broken at the moment.
  • Property svn:executable set to *
File size: 698 bytes
Line 
1#!/bin/sh
2
3choices () {
4    echo 'mediawiki MediaWiki'
5    echo 'wordpress WordPress'
6    echo 'gallery2 Gallery2'
7    echo 'phpbb phpBB'
8    echo 'git Git repository'
9    echo 'trac Trac'
10    echo 'turbogears TurboGears'
11    echo 'rails Ruby on Rails'
12}
13
14nchoices=`choices | wc -l`
15
16echo
17echo "What piece of software would you like to install?"
18echo
19choices | sed 's/^[^ ]* //' | cat -n
20echo
21printf "Please enter a number 1-%d: " "$nchoices"
22read num
23echo
24
25attach scripts 2>/dev/null
26choice=`choices | sed -n "$num { s/ .*$//; p; }"`
27if [ -n "$choice" ]; then
28  . "/mit/scripts/bin$scriptsdev/scripts-$choice"
29else
30  echo "ERROR:"
31  echo "You must enter a number 1 through $nchoices."
32  exit 1
33fi
Note: See TracBrowser for help on using the repository browser.