diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-30 18:31:37 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-30 18:31:37 +0800 |
commit | cc0f51965dbaf8ac11d9eee32617f27b4d558353 (patch) | |
tree | eada984a61a2064e3ca3d1416358602208a01dac /blog | |
parent | 65b7554131a6af916d4ca123576227078c493e9c (diff) | |
download | pttbbs-cc0f51965dbaf8ac11d9eee32617f27b4d558353.tar pttbbs-cc0f51965dbaf8ac11d9eee32617f27b4d558353.tar.gz pttbbs-cc0f51965dbaf8ac11d9eee32617f27b4d558353.tar.bz2 pttbbs-cc0f51965dbaf8ac11d9eee32617f27b4d558353.tar.lz pttbbs-cc0f51965dbaf8ac11d9eee32617f27b4d558353.tar.xz pttbbs-cc0f51965dbaf8ac11d9eee32617f27b4d558353.tar.zst pttbbs-cc0f51965dbaf8ac11d9eee32617f27b4d558353.zip |
for attribute
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@913 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'blog')
-rwxr-xr-x | blog/builddb.pl | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/blog/builddb.pl b/blog/builddb.pl index 36e09a68..74bd5d99 100755 --- a/blog/builddb.pl +++ b/blog/builddb.pl @@ -81,14 +81,11 @@ sub buildconfigure($$) $c = $rch->{"$_.content"}; open FH, ">$outdir/$fn"; - if( $c =~ m|<attribute>(.*?)</attribute>(.*)|s ){ + if( $c =~ m|<attribute>(.*?)\n\s*</attribute>\s*\n(.*)|s ){ ($a, $c) = ($1, $2); $a =~ s/^\s*\#.*?\n//gm; foreach( split("\n", $a) ){ - if( /^\s*(\w+):\s+(.*)/ ){ - $attr{"$fn.$1"} = $2; - print "\t$1: $2\n"; - } + $attr{"$fn.$1"} = $2 if( /^\s*(\w+):\s+(.*)/ ); } } print FH $c; |