games/yquake2 - add $@ to quake2 execution

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

games/yquake2 - add $@ to quake2 execution

Tom Murphy-7
I noticed in /usr/local/bin/quake2 you couldn't pass command-line options
to it (such as +connect <servername>) because it didn't use them when
executing. Here's a small patch to add it.

Thanks,
Tom

Index: Makefile
===================================================================
RCS file: /cvs/ports/games/yquake2/Makefile,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile
--- Makefile 11 Jan 2018 19:27:02 -0000 1.12
+++ Makefile 13 Feb 2018 20:49:07 -0000
@@ -8,7 +8,7 @@ V= 7.10
 PKGNAME= ${N}-${V}
 DISTNAME= quake2-${V}
 CATEGORIES= games
-REVISION= 0
+REVISION= 1
 
 HOMEPAGE= http://www.yamagi.org/quake2/
 MAINTAINER= Adam Wolk <[hidden email]>
Index: files/quake2.sh
===================================================================
RCS file: /cvs/ports/games/yquake2/files/quake2.sh,v
retrieving revision 1.1
diff -u -p -r1.1 quake2.sh
--- files/quake2.sh 9 Nov 2017 16:20:31 -0000 1.1
+++ files/quake2.sh 13 Feb 2018 20:49:07 -0000
@@ -1,4 +1,4 @@
 #!/bin/sh
 cd ${TRUEPREFIX}/share/yquake2
-exec ${TRUEPREFIX}/share/yquake2/quake2
+exec ${TRUEPREFIX}/share/yquake2/quake2 $@
 

Reply | Threaded
Open this post in threaded view
|

Re: games/yquake2 - add $@ to quake2 execution

Adam Wolk-2
On Tue, Feb 13, 2018 at 09:09:23PM +0000, Tom Murphy wrote:
> I noticed in /usr/local/bin/quake2 you couldn't pass command-line options
> to it (such as +connect <servername>) because it didn't use them when
> executing. Here's a small patch to add it.
>
> Thanks,
> Tom

This is OK awolk@ and has been discussed of list.

I'm looking for another OK to commit the change.

>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/games/yquake2/Makefile,v
> retrieving revision 1.12
> diff -u -p -r1.12 Makefile
> --- Makefile 11 Jan 2018 19:27:02 -0000 1.12
> +++ Makefile 13 Feb 2018 20:49:07 -0000
> @@ -8,7 +8,7 @@ V= 7.10
>  PKGNAME= ${N}-${V}
>  DISTNAME= quake2-${V}
>  CATEGORIES= games
> -REVISION= 0
> +REVISION= 1
>  
>  HOMEPAGE= http://www.yamagi.org/quake2/
>  MAINTAINER= Adam Wolk <[hidden email]>
> Index: files/quake2.sh
> ===================================================================
> RCS file: /cvs/ports/games/yquake2/files/quake2.sh,v
> retrieving revision 1.1
> diff -u -p -r1.1 quake2.sh
> --- files/quake2.sh 9 Nov 2017 16:20:31 -0000 1.1
> +++ files/quake2.sh 13 Feb 2018 20:49:07 -0000
> @@ -1,4 +1,4 @@
>  #!/bin/sh
>  cd ${TRUEPREFIX}/share/yquake2
> -exec ${TRUEPREFIX}/share/yquake2/quake2
> +exec ${TRUEPREFIX}/share/yquake2/quake2 $@
>  
>