⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 poddir2html

📁 snmp的源代码,已经在我的ubuntu下编译通过
💻
字号:
#!/usr/bin/perl## This program converts a list of Perl module's POD documentation# pages into HTML format.## Title:          poddir2html# Version:        1.0# Written by:     Alex Burger# Date:           March 1st, 2004# Last modified:  March 20th, 2004## Requirements:## -pod2html # -tidy (http://tidy.sourceforge.net/)################################################################## Options# Output folder to create the HTML files$perldoc_dir_html = "/tmp/net-snmp/html/";# tidy location$tidy = "tidy";# Base dir where Perl .pm files are located.  Leave empty if @files# contains the complete path for each file.$base_dir = "../../..";# Files to convert in the format of:# filename title# filename title# filename title# etc..@files = qw(perl/ASN/ASN.pm ASN.pmperl/OID/OID.pm OID.pmperl/SNMP/SNMP.pm SNMP.pmperl/agent/agent.pm Agent.pmperl/agent/default_store/default_store.pm Agent-Default_Store.pmperl/default_store/default_store.pm Default_store.pmperl/TrapReceiver/TrapReceiver.pm TrapReceiver.pm);# Folder separator$separator = '-';################################################################# Chop off trailing slashif ($base_dir =~ /\/$/) {  chop $base_dir;}# Chop off trailing slashif ($perldoc_dir_html =~ /\/$/) {  chop $perldoc_dir_html;}mkdir "$perldoc_dir_html";if ($separator eq '/') {  # Make output directory structure  mkdir "$perldoc_dir_html/perl";}for (my $i=0; $i <= $#files; ) {  my $file = $files[$i++];  my $file_title = $files[$i++];  chomp $file;  chomp $file_title;  if (! (-f "$base_dir/$file")) {    die "Could not open file $base_dir/$file!";  }  $command = "pod2html $base_dir/$file | $tidy -asxhtml > $perldoc_dir_html/perl$separator$file_title.html";  print "$command\n";  system "$command";  }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -