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 | 09a1c9d6913cc50e4236049d462b7b109096f042 (patch) | |
tree | 9cf0bc7a6ff0b99f9ad776a625e5b10cd9e70778 | |
parent | 65d8c05872bc6266a739a495e7118a446dfc3e6b (diff) | |
download | pttbbs-09a1c9d6913cc50e4236049d462b7b109096f042.tar pttbbs-09a1c9d6913cc50e4236049d462b7b109096f042.tar.gz pttbbs-09a1c9d6913cc50e4236049d462b7b109096f042.tar.bz2 pttbbs-09a1c9d6913cc50e4236049d462b7b109096f042.tar.lz pttbbs-09a1c9d6913cc50e4236049d462b7b109096f042.tar.xz pttbbs-09a1c9d6913cc50e4236049d462b7b109096f042.tar.zst pttbbs-09a1c9d6913cc50e4236049d462b7b109096f042.zip |
for attribute
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@913 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rwxr-xr-x | pttbbs/blog/builddb.pl | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pttbbs/blog/builddb.pl b/pttbbs/blog/builddb.pl index 36e09a68..74bd5d99 100755 --- a/pttbbs/blog/builddb.pl +++ b/pttbbs/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; |