Merge pull request #4050 from Mailaender/usr-games-deb
Fixed broken start scripts for DEB packages
This commit is contained in:
2
Makefile
2
Makefile
@@ -340,7 +340,7 @@ install-core: default
|
||||
@echo "#!/bin/sh" > openra
|
||||
@echo 'BINDIR=$$(dirname $$(readlink -f $$0))' >> openra
|
||||
@echo 'ROOTDIR="$${BINDIR%'"$(bindir)"'}"' >> openra
|
||||
@echo 'DATADIR="$${ROOTDIR}/'"$(datadir)"'"' >> openra
|
||||
@echo 'DATADIR="$${ROOTDIR}'"$(datadir)"'"' >> openra
|
||||
@echo 'cd "$${DATADIR}/openra"' >> openra
|
||||
@echo 'exec mono OpenRA.Game.exe "$$@"' >> openra
|
||||
@$(INSTALL_DIR) "$(BIN_INSTALL_DIR)"
|
||||
|
||||
@@ -21,6 +21,10 @@ cp -R $rootdir/usr root
|
||||
|
||||
# Binaries go in /usr/games
|
||||
mv root/usr/bin/ root/usr/games/
|
||||
sed "s/\/usr\/bin\//\/usr\/games\//" root/usr/games/openra > temp
|
||||
mv temp root/usr/games/openra
|
||||
sed "s/\/usr\/bin\//\/usr\/games\//" root/usr/games/openra-editor > temp
|
||||
mv temp root/usr/games/openra-editor
|
||||
|
||||
# Put the copyright and changelog in /usr/share/doc/openra/
|
||||
mkdir -p root/usr/share/doc/openra/
|
||||
|
||||
Reference in New Issue
Block a user