summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-03 21:06:56 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-03 21:06:56 +0800
commit3fa7fa5cbc0f9878179414f74346df169f1c4f0a (patch)
tree025fbae9d22b04d9a1965066eea08634c2dd202b
parent85242c916849264154d18aa4c9493f435e915e10 (diff)
downloadpttbbs-3fa7fa5cbc0f9878179414f74346df169f1c4f0a.tar
pttbbs-3fa7fa5cbc0f9878179414f74346df169f1c4f0a.tar.gz
pttbbs-3fa7fa5cbc0f9878179414f74346df169f1c4f0a.tar.bz2
pttbbs-3fa7fa5cbc0f9878179414f74346df169f1c4f0a.tar.lz
pttbbs-3fa7fa5cbc0f9878179414f74346df169f1c4f0a.tar.xz
pttbbs-3fa7fa5cbc0f9878179414f74346df169f1c4f0a.tar.zst
pttbbs-3fa7fa5cbc0f9878179414f74346df169f1c4f0a.zip
add title
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@1008 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rwxr-xr-xpttbbs/staticweb/manbuilder.pl10
1 files changed, 6 insertions, 4 deletions
diff --git a/pttbbs/staticweb/manbuilder.pl b/pttbbs/staticweb/manbuilder.pl
index 1e9e95d7..e7a0f46e 100755
--- a/pttbbs/staticweb/manbuilder.pl
+++ b/pttbbs/staticweb/manbuilder.pl
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# $Id: manbuilder.pl,v 1.4 2003/07/03 07:22:24 in2 Exp $
+# $Id: manbuilder.pl,v 1.5 2003/07/03 13:06:56 in2 Exp $
use lib '/home/bbs/bin/';
use strict;
use OurNet::FuzzyIndex;
@@ -39,13 +39,15 @@ sub build($$)
$fn = $bfh{"$_.filename"};
if( $bfh{"$_.isdir"} ){
- push @tdir, ["$doffset/$fn/", $bfh{"$_.title"}];
+ push @tdir, ["$doffset/$fn/", # ¥Ø¿ýµ²§À­n¥[ /
+ $db{"title-$doffset/$fn/"} = $bfh{"$_.title"}];
build("$basedir/$fn", "$doffset/$fn");
}
else{
- push @tdir, ["$doffset/$fn", $bfh{"$_.title"}];
+ push @tdir, ["$doffset/$fn",
+ $db{"title-$doffset/$fn/"} = $bfh{"$_.title"}];
my $c = $bfh{"$_.content"};
- $idx->insert("$doffset/$fn", $c);
+ $idx->insert("$doffset/$fn", $bfh{"$_.title"}. "\n$c");
$db{"$doffset/$fn"} = $c;
}
}