| 
                Last change
                  on this file since 2328 was
                  2311,
                  checked in by achernya, 13 years ago
           | 
        
        
          | 
            Re-enable Django
           | 
        
        
          
            
              - 
                  Property svn:executable set to
                  
*
               
             
           | 
        
        | 
            File size:
            723 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 'git Git repository' | 
|---|
| 9 |     echo 'trac Trac' | 
|---|
| 10 |     echo 'turbogears TurboGears' | 
|---|
| 11 |     echo 'django Django' | 
|---|
| 12 |     echo 'rails Ruby on Rails' | 
|---|
| 13 | } | 
|---|
| 14 |  | 
|---|
| 15 | nchoices=`choices | wc -l` | 
|---|
| 16 |  | 
|---|
| 17 | echo | 
|---|
| 18 | echo "What piece of software would you like to install?" | 
|---|
| 19 | echo | 
|---|
| 20 | choices | sed 's/^[^ ]* //' | cat -n | 
|---|
| 21 | echo | 
|---|
| 22 | printf "Please enter a number 1-%d: " "$nchoices" | 
|---|
| 23 | read num | 
|---|
| 24 | echo | 
|---|
| 25 |  | 
|---|
| 26 | attach scripts 2>/dev/null | 
|---|
| 27 | choice=`choices | sed -n "$num { s/ .*$//; p; }"` | 
|---|
| 28 | if [ -n "$choice" ]; then | 
|---|
| 29 |   . "/mit/scripts/bin$scriptsdev/scripts-$choice" | 
|---|
| 30 | else | 
|---|
| 31 |   echo "ERROR:" | 
|---|
| 32 |   echo "You must enter a number 1 through $nchoices." | 
|---|
| 33 |   exit 1 | 
|---|
| 34 | fi | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.