|
Last change
on this file since 1846 was
1846,
checked in by adehnert, 14 years ago
|
|
Record changes that have been merged to trunk
See http://svnbook.red-bean.com/nightly/en/svn.branchmerge.advanced.html#svn.branchmerge.advanced.reintegratetwice
for the reason behind doing this.
In particular, this is the result of:
svn merge --record-only -c 1750 ^/trunk/locker/sbin/
cd ../..
svn merge --record-only -c 1791 ^/trunk/
svn merge --record-only -c 1551 ^/trunk/
(picked based on which changes caused tree conflicts during the merge of
trunk back onto this branch, and then seeing which commits were already
made)
|
-
Property svn:executable set to
*
|
|
File size:
751 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | |
|---|
| 3 | choices () { |
|---|
| 4 | echo 'mediawiki MediaWiki' |
|---|
| 5 | echo 'wordpress WordPress' |
|---|
| 6 | echo 'gallery2 Gallery2' |
|---|
| 7 | echo 'phpbb phpBB' |
|---|
| 8 | echo 'phpical PHP iCalendar' |
|---|
| 9 | echo 'trac Trac' |
|---|
| 10 | echo 'joomla Joomla' |
|---|
| 11 | echo 'turbogears TurboGears' |
|---|
| 12 | echo 'django Django' |
|---|
| 13 | echo 'rails Ruby on Rails' |
|---|
| 14 | } |
|---|
| 15 | |
|---|
| 16 | nchoices=`choices | wc -l` |
|---|
| 17 | |
|---|
| 18 | echo |
|---|
| 19 | echo "What piece of software would you like to install?" |
|---|
| 20 | echo |
|---|
| 21 | choices | sed 's/^[^ ]* //' | cat -n |
|---|
| 22 | echo |
|---|
| 23 | printf "Please enter a number 1-%d: " "$nchoices" |
|---|
| 24 | read num |
|---|
| 25 | echo |
|---|
| 26 | |
|---|
| 27 | attach scripts 2>/dev/null |
|---|
| 28 | choice=`choices | sed -n "$num { s/ .*$//; p; }"` |
|---|
| 29 | if [ -n "$choice" ]; then |
|---|
| 30 | . "/mit/scripts/bin$scriptsdev/scripts-$choice" |
|---|
| 31 | else |
|---|
| 32 | echo "ERROR:" |
|---|
| 33 | echo "You must enter a number 1 through $nchoices." |
|---|
| 34 | exit 1 |
|---|
| 35 | fi |
|---|
Note: See
TracBrowser
for help on using the repository browser.