summaryrefslogtreecommitdiff
path: root/bin/pod2x
diff options
context:
space:
mode:
authorivan <ivan>2002-01-29 16:33:16 +0000
committerivan <ivan>2002-01-29 16:33:16 +0000
commit6991d4986df7fb3a6c7c49b5ae1b3713e87a16c4 (patch)
tree40efa15fb918ceb4e065160a4257349322658b6c /bin/pod2x
parentf02dd9b0e5042ef000d9338089eed50988d48914 (diff)
- web interface for hourly account charges!
(FS::cust_pkg, FS::cust_svc and FS::svc_acct seconds_since methods) - Makefile target to regenerate HTML manpages on install - FS.pm doc update - $FS::Record::Debug now dumps all SQL - new FS::cust_main methods: ->cancel, ->invoicing_list_addpost - start of a billing event web interface - cust_pay::upgrade_replace doesn't error out if history includes overapplied payments
Diffstat (limited to 'bin/pod2x')
-rwxr-xr-xbin/pod2x32
1 files changed, 28 insertions, 4 deletions
diff --git a/bin/pod2x b/bin/pod2x
index 8c020062c..cbe142389 100755
--- a/bin/pod2x
+++ b/bin/pod2x
@@ -15,17 +15,41 @@ die "Can't find $site_perl" unless -d $site_perl;
#die "Can't find $catman" unless -d $catman;
die "Can't find $html" unless -d $html;
+#make some useless links
+foreach my $file (
+ glob("$site_perl/bin/freeside-*"),
+) {
+ next if $file =~ /\.pod$/;
+ #symlink $file, "$file.pod"; # or die "link $file to $file.pod: $!";
+ system("cp $file $file.pod");
+}
+
foreach my $file (
glob("$site_perl/*.pm"),
glob("$site_perl/*/*.pm"),
- glob("$site_perl/*/*/*.pm")
+ glob("$site_perl/*/*/*.pm"),
+ glob("$site_perl/bin/*.pod"),
+ glob("./fs_sesmon/FS-SessionClient/*.pm"),
+ glob("./fs_signup/FS-SignupClient/*.pm"),
+ glob("./fs_selfadmin/FS-MailAdminServer/*.pm"),
) {
#$file =~ /\/([\w\-]+)\.pm$/ or die "oops file $file";
- $file =~ /$site_perl\/(.*)\.pm$/ or die "oops file $file";
- my $name = $1;
+ my $name;
+ if ( $file =~ /fs_\w+\/FS\-\w+\/(.*)\.pm$/ ) {
+ $name = "FS/$1";
+ } elsif ( $file =~ /$site_perl\/(.*)\.(pm|pod)$/ ) {
+ $name = $1;
+ } else {
+ die "oops file $file";
+ }
print "$name\n";
my $htmlroot = join('/', map '..',1..(scalar($file =~ tr/\///)-2)) || '.';
# system "pod2text $file >$catman/$name.txt";
- system "pod2html --podroot=$site_perl --podpath=./FS:./FS/UI:. --norecurse --htmlroot=$htmlroot $file >$html/$name.html";
+ system "pod2html --podroot=$site_perl --podpath=./FS:./FS/UI:.:./bin --norecurse --htmlroot=$htmlroot $file >$html/$name.html";
+ #system "pod2html --podroot=$site_perl --htmlroot=$htmlroot $file >$html/$name.html";
# system "pod2html $file >$html/$name.html";
}
+
+#remove the useless links
+unlink glob("$site_perl/bin/*.pod");
+