1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/games/quakeserver/scripts/configure
James FitzGibbon dd3d3d10e9 Import of port to host Quake netgames under FreeBSD.
(what good was the QuakeC compiler without a server to run the games on?)
1996-10-28 10:49:53 +00:00

13 lines
397 B
Perl

#!/usr/bin/perl
#
eval '(exit $?0)' && eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
& eval 'exec /usr/bin/perl -S $0 $argv:q'
if 0;
chop( $hostname = `hostname` );
$files = ( "$ENV{'WRKDIR'}/server/quake/qslog $ENV{'WRKDIR'}/server/quake/qsrv.expect" );
system( "/usr/bin/perl -pi -e 's|%%PREFIX%%|$ENV{'PREFIX'}|g' $files" );
system( "/usr/bin/perl -pi -e 's|%%HOSTNAME%%|$hostname|g' $files" );