summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-08-18 19:48:17 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-08-18 19:48:17 +0800
commitd6ec2525926e9cbd3afc4b06ccd0300b05ddb301 (patch)
tree392fb96c328623e76467817faf231711220fcdbd /util
parent522c7c914b0c8e3400684de08907f9748e42c97b (diff)
downloadpttbbs-d6ec2525926e9cbd3afc4b06ccd0300b05ddb301.tar
pttbbs-d6ec2525926e9cbd3afc4b06ccd0300b05ddb301.tar.gz
pttbbs-d6ec2525926e9cbd3afc4b06ccd0300b05ddb301.tar.bz2
pttbbs-d6ec2525926e9cbd3afc4b06ccd0300b05ddb301.tar.lz
pttbbs-d6ec2525926e9cbd3afc4b06ccd0300b05ddb301.tar.xz
pttbbs-d6ec2525926e9cbd3afc4b06ccd0300b05ddb301.tar.zst
pttbbs-d6ec2525926e9cbd3afc4b06ccd0300b05ddb301.zip
fix util merging error
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1107 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r--util/Makefile2
-rw-r--r--util/parsevar.pl4
2 files changed, 4 insertions, 2 deletions
diff --git a/util/Makefile b/util/Makefile
index 7d1073d7..b4788abd 100644
--- a/util/Makefile
+++ b/util/Makefile
@@ -2,6 +2,8 @@
.include "../pttbbs.mk"
+CFLAGS+= -DPTTBBS_UTIL
+
UTIL_OBJS= \
util_cache.o util_record.o util_passwd.o util_var.o \
util_stuff.o util_osdep.o util_args.o
diff --git a/util/parsevar.pl b/util/parsevar.pl
index d532c786..fe2f2dc0 100644
--- a/util/parsevar.pl
+++ b/util/parsevar.pl
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# $Id: parsevar.pl,v 1.2 2003/06/20 22:06:30 in2 Exp $
+# $Id$
print << '.';
/*
* This header file is auto-generated from pttbbs/mbbsd/var.c .
@@ -16,7 +16,7 @@ while( <> ){
$_ = substr($_, 0, index($_, '=') - 1) if( index($_, '=') != -1 );
$_ .= ';' if( index($_, ';') == -1 );
print "extern $_\n";
- } elsif( /^\#/ && !/include/ ){
+ } elsif( /^\s*\#/ && !/include/ ){
print;
}
}