fixed quotations

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6145 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
aerkefiende
2011-03-27 16:15:31 +00:00
parent e2c49fd6ca
commit 5062bfaddd
2 changed files with 23 additions and 23 deletions
+19 -19
View File
@@ -2,16 +2,16 @@
#Configures the environment for the *nix users.
ac_version=1.1.0.5
ac_dir=$(dirname $(readlink -f "${0}"))
ac_dir=$(dirname "$(readlink -f "${0}")")
ac_exec=assaultcube.sh
ac_menupath=~/.local/share/applications
ac_desktoppath=~/Desktop
ac_entryfile=assaultcube.desktop
ac_desktop="undefined"
ac_desktop=undefined
GetDesktop()
{
case ${DESKTOP_SESSION} in
case "${DESKTOP_SESSION}" in
gnome)
ac_desktop="Gnome"
;;
@@ -22,7 +22,7 @@ GetDesktop()
}
existDesktopEntry()
{
if [ -f ${ac_desktoppath}/${ac_entryfile} ]; then
if [ -f "${ac_desktoppath}/${ac_entryfile}" ]; then
ac_existdesktopentry="X"
else
ac_existdesktopentry=" "
@@ -30,7 +30,7 @@ existDesktopEntry()
}
existMenuEntry()
{
if [ -f ${ac_menupath}/${ac_entryfile} ]; then
if [ -f "${ac_menupath}/${ac_entryfile}" ]; then
ac_existmenuentry="X"
else
ac_existmenuentry=" "
@@ -42,8 +42,8 @@ existProtocol()
}
installDesktopEntry()
{
mkdir -pv ${ac_desktoppath}
cat > ${ac_desktoppath}/${ac_entryfile} <<EOF
mkdir -pv "${ac_desktoppath}"
cat > "${ac_desktoppath}/${ac_entryfile}" <<EOF
[Desktop Entry]
Version=${ac_version}
Type=Application
@@ -54,12 +54,12 @@ Categories=Game;ActionGame;
Name=AssaultCube
Comment=Fast paced first-person shooter based upon the Cube engine
EOF
chmod uga+x ${ac_desktoppath}/${ac_entryfile}
chmod uga+x "${ac_desktoppath}/${ac_entryfile}"
}
installMenuEntry()
{
mkdir -pv ${ac_menupath}
cat > ${ac_menupath}/${ac_entryfile} <<EOF
mkdir -pv "${ac_menupath}"
cat > "${ac_menupath}/${ac_entryfile}" <<EOF
[Desktop Entry]
Version=${ac_version}
Type=Application
@@ -77,11 +77,11 @@ installProtocol()
}
uninstallDesktopEntry()
{
rm ${ac_desktoppath}/${ac_entryfile}
rm "${ac_desktoppath}/${ac_entryfile}"
}
uninstallMenuEntry()
{
rm ${ac_menupath}/${ac_entryfile}
rm "${ac_menupath}/${ac_entryfile}"
}
uninstallProtocol()
{
@@ -110,11 +110,11 @@ echo -e "URL Protocol\t[${ac_existprotocol}]"
echo ""
echo "What would you like to do? install/uninstall/cancel [install]"
read ac_installoption
case ${ac_installoption} in
case "${ac_installoption}" in
""|i|I|install|Install)
echo "Do you want to create a shortcut on your Desktop? yes/no [yes]"
read ac_componentoption
case ${ac_componentoption} in
case "${ac_componentoption}" in
""|y|Y|yes|Yes)
installDesktopEntry
;;
@@ -126,7 +126,7 @@ case ${ac_installoption} in
esac
echo "Do you want to create a shortcut in your menu? yes/no [yes]"
read ac_componentoption
case ${ac_componentoption} in
case "${ac_componentoption}" in
""|y|Y|yes|Yes)
installMenuEntry
;;
@@ -138,7 +138,7 @@ case ${ac_installoption} in
esac
echo "Do you want your browser to handle assaultcube:// links? yes/no [yes]"
read ac_componentoption
case ${ac_componentoption} in
case "${ac_componentoption}" in
""|y|Y|yes|Yes)
installProtocol
;;
@@ -152,7 +152,7 @@ case ${ac_installoption} in
u|U|uninstall|Uninstall)
echo "Do you want to remove the shortcut from your Desktop? yes/no [no]"
read ac_componentoption
case ${ac_componentoption} in
case "${ac_componentoption}" in
y|Y|yes|Yes)
uninstallDesktopEntry
;;
@@ -164,7 +164,7 @@ u|U|uninstall|Uninstall)
esac
echo "Do you want to remove the shortcut from your menu? yes/no [no]"
read ac_componentoption
case ${ac_componentoption} in
case "${ac_componentoption}" in
y|Y|yes|Yes)
uninstallMenuEntry
;;
@@ -176,7 +176,7 @@ u|U|uninstall|Uninstall)
esac
echo "Do you want to remove the assaultcube:// link handler? yes/no [no]"
read ac_componentoption
case ${ac_componentoption} in
case "${ac_componentoption}" in
y|Y|yes|Yes)
uninstallProtocol
;;
+4 -4
View File
@@ -43,16 +43,16 @@ x86_64)
;;
esac
if [ -x ${CUBE_DIR}/bin_unix/native_server ]
if [ -x "${CUBE_DIR}/bin_unix/native_server" ]
then
SYSTEM_NAME=native_
MACHINE_NAME=
fi
if [ -x ${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}server ]
if [ -x "${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}server" ]
then
cd ${CUBE_DIR}
exec ${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}server ${CUBE_OPTIONS} ${CUBE_OPTIONFILE} "$@"
cd "${CUBE_DIR}"
exec "${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}server" "${CUBE_OPTIONS}" "${CUBE_OPTIONFILE}" "$@"
else
echo "Your platform does not have a pre-compiled Cube server."
echo "Please follow the following steps to build a native server:"