From 0fae00eec6283cc8945f32e52cd17680b409aa80 Mon Sep 17 00:00:00 2001 From: aerkefiende Date: Sat, 5 Mar 2011 23:00:49 +0000 Subject: [PATCH] Starting to write a little install script for unix users. Should replace install_desktop_menu.sh in the near future. git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6115 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- install.sh | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 00000000..a9a1ef97 --- /dev/null +++ b/install.sh @@ -0,0 +1,49 @@ +#!/bin/bash +#Configures the environment for the *nix users. + +ac_version=1.1.0.5 +ac_dir=$(dirname $(readlink -f "${0}")) +ac_exec=assaultcube.sh +ac_desktop="undefined" +ac_existdesktopentry=" " +ac_existmenuentry=" " +ac_existprotocol=" " + +GetDesktop() +{ + ac_desktop="undefined" +} +existDesktopEntry() +{ + ac_existdesktopentry="X" +} +existMenuEntry() +{ + ac_existmenuentry="X" +} +existProtocol() +{ + ac_existprotocol="X" +} + +GetDesktop +echo "Hello. You are about to install version $ac_version of AssaultCube. Your Deskop: $ac_desktop" + +existDesktopEntry +existMenuEntry +existProtocol +echo "" +echo -e "Following components are already installed:\n" +echo -e "Desktop Entry\t[$ac_existdesktopentry]" +echo -e "Menu Entry\t[$ac_existmenuentry]" +echo -e "URL Protocol\t[$ac_existprotocol]" + +echo "" +echo "What would you like to do? install/uninstall/cancel [install]" +read ac_installoption + +#Desktop Entry + +#Menu Entry + +#URL Protocol