Last change
on this file since 1015 was
1012,
checked in by mitchb, 16 years ago
|
Uncommitted changes from geofft and andersk.
Allow Django autoinstalls, and test new MediaWiki and WordPress
installs.
|
-
Property svn:executable set to
*
|
File size:
785 bytes
|
Rev | Line | |
---|
[127] | 1 | #!/bin/sh |
---|
| 2 | |
---|
[997] | 3 | choices () { |
---|
| 4 | echo 'mediawiki MediaWiki' |
---|
| 5 | echo 'wordpress WordPress' |
---|
| 6 | echo 'joomla Joomla' |
---|
| 7 | echo 'e107 e107' |
---|
| 8 | echo 'gallery2 Gallery2' |
---|
| 9 | echo 'phpbb phpBB' |
---|
| 10 | echo 'advancedbook Advanced Guest Book' |
---|
| 11 | echo 'phpical PHP iCalendar' |
---|
| 12 | echo 'trac Trac' |
---|
| 13 | echo 'turbogears TurboGears' |
---|
[1012] | 14 | echo 'django Django' |
---|
[997] | 15 | } |
---|
| 16 | |
---|
| 17 | nchoices=`choices | wc -l` |
---|
| 18 | |
---|
[127] | 19 | echo |
---|
| 20 | echo "What piece of software would you like to install?" |
---|
| 21 | echo |
---|
[997] | 22 | choices | sed 's/^[^ ]* //' | cat -n |
---|
[127] | 23 | echo |
---|
[997] | 24 | printf "Please enter a number 1-%d: " "$nchoices" |
---|
[127] | 25 | read num |
---|
| 26 | echo |
---|
| 27 | |
---|
| 28 | attach scripts 2>/dev/null |
---|
[997] | 29 | choice=`choices | sed -n "$num { s/ .*$//; p; }"` |
---|
| 30 | if [ -n "$choice" ]; then |
---|
| 31 | . "/mit/scripts/bin$scriptsdev/scripts-$choice" |
---|
[127] | 32 | else |
---|
[458] | 33 | echo "ERROR:" |
---|
[997] | 34 | echo "You must enter a number 1 through $nchoices." |
---|
[127] | 35 | exit 1 |
---|
| 36 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.