updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / dead-cyborg-episode1 / dead-cyborg-episode1.install
blob9e561a0e2c42f9815a2dde198a938775cad1a7d5
2 post_install() {
3         echo
4         echo "Dead Cyborg comes with several starter scripts located in /opt/dead-cyborg-episode1"
5         echo "Please choose which one you want to use for the Games menu (1-4):"
6         echo "[1] start-game.sh"
7         echo "[2] start-game_fullscreen.sh"
8         echo "[3] start-game_pulseaudio.sh"
9         echo "[4] start-game_pulseaudio_fullscreen.sh"
10         read nr;
11         case $nr in
12                 1) startgame="start-game" ;;
13                 2) startgame="start-game_fullscreen" ;;
14                 3) startgame="start-game_pulseaudio" ;;
15                 4) startgame="start-game_pulseaudio_fullscreen" ;;
16                 *) startgame="start-game" ;;
17         esac
18         sed -i "s/start-game/${startgame}/g" /usr/bin/dead-cyborg-episode1
19         echo "Dead Cyborg will be started with ${startgame}.sh"
20         echo
23 post_upgrade() {
24         post_install