-
Notifications
You must be signed in to change notification settings - Fork 5
/
fireplace-beta.sh
executable file
·35 lines (29 loc) · 993 Bytes
/
fireplace-beta.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
echo 'Copyright (C) 2008-2009 Mario Danic <[email protected]>'
echo 'Modified by Brendan "Phobos" Almonte <[email protected]>'
echo 'Ramaze stack is copyright (c) 2008-2009 Pistos'
echo "Welcome to Webby's fireplace"
echo 'This tiny script is a wrapper around various'
echo 'provided server deployment scripts.'
echo 'This is beta!!'
PS3="Your choice: "
select stackname in "ramaze" "gitosis" "trac" "grails" "mysql" "postgresql" "lamp" "subversion" "lighttpd" "quit"; do
if [ "$stackname" = "quit" ]; then
exit 0
elif [ "$stackname" = "trac" -o "$stackname" = "subversion" ]; then
echo 'Project name:'
read $PROJECT
echo 'Developer name:'
read $DEVELOPER
cd "$stackname"-stack
./build-"$stackname"-stack.sh $PROJECT $DEVELOPER
else
if [ -f "$stackname"-stack/build-"$stackname"-stack.sh ]; then
cd "$stackname"-stack
./build-"$stackname"-stack.sh
else
echo "Bad choice, going out for a walk!"
exit 2
fi
fi
done