Compile UZDoom on Linux: Difference between revisions

Content deleted Content added
Skyrimguy (talk | contribs)
Skyrimguy (talk | contribs)
Line 244:
if [ -z "$(git describe --exact-match --tags $h 2>/dev/null)" ]; then
d=-alpha; else d=''; fi &&
printf '%s\n' '#!/bin/sh' "exec /usr/games/uzdoom$d/uzdoom \"\$@\"" \
'[ "$(echo $XDG_SESSION_TYPE)" = wayland ] && export SDL_VIDEO_DRIVER=wayland' \
> uzdoom$d.sh &&
"exec /usr/games/uzdoom$d/uzdoom \"\$@\"" > uzdoom$d.sh &&
chmod 755 uzdoom$d.sh &&
sudo mv -v uzdoom$d.sh /usr/bin/uzdoom$d