mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2024-11-23 04:12:02 +00:00
14 lines
495 B
Bash
Executable file
14 lines
495 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
if ! test -e "$SETUP_INSTALLPATH"/q3rally.desktop.in; then
|
|
exit 0
|
|
fi
|
|
xdg_desktop_menu=`which xdg-desktop-menu 2>/dev/null`
|
|
if test "x$xdg_desktop_menu" = x; then
|
|
xdg_desktop_menu=./xdg-desktop-menu
|
|
fi
|
|
sed -e "s#^Exec=.*#Exec=$SETUP_INSTALLPATH/q3rally#" \
|
|
-e "s#^Icon=.*#Icon=$SETUP_INSTALLPATH/q3rally.png#" \
|
|
< $SETUP_INSTALLPATH/q3rally.desktop.in \
|
|
> $SETUP_INSTALLPATH/q3rally.desktop
|
|
$xdg_desktop_menu install --novendor $SETUP_INSTALLPATH/q3rally.desktop
|