mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
dd3d3d10e9
(what good was the QuakeC compiler without a server to run the games on?)
13 lines
397 B
Perl
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" );
|