Merge pull request #4050 from Mailaender/usr-games-deb

Fixed broken start scripts for DEB packages
This commit is contained in:
Paul Chote
2013-11-02 15:11:48 -07:00
2 changed files with 5 additions and 1 deletions

View File

@@ -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)"

View File

@@ -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/