From 08f52e31c5f777963d565085d077c9d8d9734e17 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 25 Sep 1998 08:52:48 +0000 Subject: Initial revision --- bin/pod2x | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 bin/pod2x (limited to 'bin/pod2x') diff --git a/bin/pod2x b/bin/pod2x new file mode 100755 index 000000000..1edb1c41e --- /dev/null +++ b/bin/pod2x @@ -0,0 +1,23 @@ +#!/usr/bin/perl + +#use Pod::Text; +#$Pod::Text::termcap=1; + +my $site_perl = "./site_perl"; +#my $catman = "./catman"; +my $catman = "./htdocs/docs/man"; +#my $html = "./htdocs/docs/man"; + +$|=1; + +die "Can't find $site_perl and $catman" + unless [ -d $site_perl ] && [ -d $catman ] && [ -d $html ]; + +foreach my $file (glob("$site_perl/*.pm")) { + $file =~ /\/([\w\-]+)\.pm$/ or die "oops file $file"; + my $name = $1; + print "$name\n"; + system "pod2text $file >$catman/$name.txt"; +# system "pod2html --podpath=$site_perl $file >$html/$name.html"; +# system "pod2html $file >$html/$name.html"; +} -- cgit v1.2.1 From 32794e9defaeb5ebc84afabf3ef5b360f5533d08 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 4 Aug 1999 12:42:19 +0000 Subject: new, kludgy-but-working html generator --- bin/pod2x | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'bin/pod2x') diff --git a/bin/pod2x b/bin/pod2x index 1edb1c41e..2c10a30d0 100755 --- a/bin/pod2x +++ b/bin/pod2x @@ -3,21 +3,27 @@ #use Pod::Text; #$Pod::Text::termcap=1; -my $site_perl = "./site_perl"; +my $site_perl = "./FS"; #my $catman = "./catman"; -my $catman = "./htdocs/docs/man"; -#my $html = "./htdocs/docs/man"; +#my $catman = "./htdocs/docs/man"; +my $html = "./htdocs/docs/man"; $|=1; die "Can't find $site_perl and $catman" unless [ -d $site_perl ] && [ -d $catman ] && [ -d $html ]; -foreach my $file (glob("$site_perl/*.pm")) { - $file =~ /\/([\w\-]+)\.pm$/ or die "oops file $file"; +foreach my $file ( + glob("$site_perl/*.pm"), + glob("$site_perl/*/*.pm"), + glob("$site_perl/*/*/*.pm") +) { + #$file =~ /\/([\w\-]+)\.pm$/ or die "oops file $file"; + $file =~ /$site_perl\/(.*)\.pm$/ or die "oops file $file"; my $name = $1; - print "$name\n"; - system "pod2text $file >$catman/$name.txt"; -# system "pod2html --podpath=$site_perl $file >$html/$name.html"; + 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 $file >$html/$name.html"; } -- cgit v1.2.1 From 51984ac3d3da3006809c6866fdecd4ad83610731 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 30 Jul 2001 07:36:04 +0000 Subject: templates!!! --- bin/pod2x | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bin/pod2x') diff --git a/bin/pod2x b/bin/pod2x index 2c10a30d0..8c020062c 100755 --- a/bin/pod2x +++ b/bin/pod2x @@ -6,12 +6,14 @@ my $site_perl = "./FS"; #my $catman = "./catman"; #my $catman = "./htdocs/docs/man"; -my $html = "./htdocs/docs/man"; +#my $html = "./htdocs/docs/man"; +my $html = "./httemplate/docs/man"; $|=1; -die "Can't find $site_perl and $catman" - unless [ -d $site_perl ] && [ -d $catman ] && [ -d $html ]; +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; foreach my $file ( glob("$site_perl/*.pm"), -- cgit v1.2.1 From 6991d4986df7fb3a6c7c49b5ae1b3713e87a16c4 Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 29 Jan 2002 16:33:16 +0000 Subject: - 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 --- bin/pod2x | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) (limited to 'bin/pod2x') 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"); + -- cgit v1.2.1 From 88d4198ff452581be05e3018b3e23db564545525 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 6 Feb 2002 15:55:47 +0000 Subject: doc updates and pod2x fix to skip blib/ files --- bin/pod2x | 1 + 1 file changed, 1 insertion(+) (limited to 'bin/pod2x') diff --git a/bin/pod2x b/bin/pod2x index cbe142389..385c5db0a 100755 --- a/bin/pod2x +++ b/bin/pod2x @@ -33,6 +33,7 @@ foreach my $file ( glob("./fs_signup/FS-SignupClient/*.pm"), glob("./fs_selfadmin/FS-MailAdminServer/*.pm"), ) { + next if $file =~ /^blib\//; #$file =~ /\/([\w\-]+)\.pm$/ or die "oops file $file"; my $name; if ( $file =~ /fs_\w+\/FS\-\w+\/(.*)\.pm$/ ) { -- cgit v1.2.1 From c5a358f8b8b0c7ac8f627f7042d81f4187bed57f Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 19 Jun 2002 04:54:04 +0000 Subject: pod build fix thanks to Stephen Bechard --- bin/pod2x | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/pod2x') diff --git a/bin/pod2x b/bin/pod2x index 385c5db0a..46ccc7743 100755 --- a/bin/pod2x +++ b/bin/pod2x @@ -33,7 +33,7 @@ foreach my $file ( glob("./fs_signup/FS-SignupClient/*.pm"), glob("./fs_selfadmin/FS-MailAdminServer/*.pm"), ) { - next if $file =~ /^blib\//; + next if $file =~ /(^|\/)blib\//; #$file =~ /\/([\w\-]+)\.pm$/ or die "oops file $file"; my $name; if ( $file =~ /fs_\w+\/FS\-\w+\/(.*)\.pm$/ ) { -- cgit v1.2.1