summaryrefslogtreecommitdiff
blob: ac329c0dd58dec5066d99bc5c5f7b9f78e19f777 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Work around Gentoo's crippled dash
# Also add "$@" to accept options
--- pingus-0.7.6/Makefile
+++ pingus-0.7.6/Makefile
@@ -39,7 +39,7 @@
 	install -d "$(DESTDIR)$(BINDIR)"
 
 	install -D build/pingus "$(DESTDIR)$(BINDIR)/pingus.bin"
-	echo -e "#!/bin/sh\nexec \"$(BINDIR)/pingus.bin\" --datadir \"$(DATADIR)\"" > "$(DESTDIR)$(BINDIR)/pingus"
+	printf '%s\n%s' "#!/bin/sh" "exec \"$(BINDIR)/pingus.bin\" --datadir \"$(DATADIR)\" \"\$$@\"" > "$(DESTDIR)$(BINDIR)/pingus"
 	chmod 755 "$(DESTDIR)$(BINDIR)/pingus"
 
 install-data: