r1879 - trunk/misc
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu Aug 31 15:40:10 EDT 2006
Author: div0
Date: 2006-08-31 15:40:10 -0400 (Thu, 31 Aug 2006)
New Revision: 1879
Modified:
trunk/misc/nexuiz-map-compiler
Log:
nexuiz-map-compiler now can read a config file (yes, ugly hack)
Modified: trunk/misc/nexuiz-map-compiler
===================================================================
--- trunk/misc/nexuiz-map-compiler 2006-08-30 19:29:48 UTC (rev 1878)
+++ trunk/misc/nexuiz-map-compiler 2006-08-31 19:40:10 UTC (rev 1879)
@@ -4,29 +4,32 @@
use warnings;
use POSIX;
-# change these to match your system
+# change these to match your system, or define them in ~/.nexuiz-map-compiler
+# (just copy paste this part to the file ~/.nexuiz-map-compiler)
# Path to Nexuiz (where the data directory is in)
- my $NEXUIZDIR = '/home/polzer/Nexvn/nexuiz';
+ our $NEXUIZDIR = '/home/polzer/Nexvn/nexuiz';
# Path to your q3map2 program. You find it in your GtkRadiant/install
# directory.
- my $Q3MAP2 = '/home/users4/ommz/polzer/bin/q3map2.x86';
+ our $Q3MAP2 = '/home/users4/ommz/polzer/bin/q3map2.x86';
# General flags for q3map2 (for example -threads 4)
- my $Q3MAP2FLAGS = '';
+ our $Q3MAP2FLAGS = '';
# Default flags for the -bsp stage
- my $BSPFLAGS = '-samplesize 8';
+ our $BSPFLAGS = '-samplesize 8';
# Default flags for the -vis stage
- my $VISFLAGS = '';
+ our $VISFLAGS = '';
# Default flags for the -light stage
- my $LIGHTFLAGS = '-deluxe -patchshadows -samples 3';
+ our $LIGHTFLAGS = '-deluxe -patchshadows -samples 3';
# end of user changable part
+do "$ENV{HOME}/.nexuiz-map-compiler";
+
sub Usage()
{
print <<EOF;
More information about the nexuiz-commits
mailing list