Develop and Download Open Source Software

Browse CVS Repository

Diff of /tombo/htdocs/pagegen.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3 by hirami, Thu Mar 18 13:46:03 2004 UTC revision 1.4 by hirami, Tue Apr 27 14:25:17 2004 UTC
# Line 1  Line 1 
1  #! /usr/bin/perl  #! /usr/bin/perl
2    
3    $base  ="http://tombo.sourceforge.jp";
4    $pjhome="http://sourceforge.jp/projects/tombo";
5    
6  $menufile = "menu.txt";  $menufile = "menu.txt";
7  $topfile = "title.txt";  $topfile = "title.txt";
8  $headerfile = "header.txt";  $headerfile = "header.txt";
9    
10    
11    
12  if ($#ARGV != 1 || !-d $ARGV[0] || !-d $ARGV[1]) {  if ($#ARGV != 1 || !-d $ARGV[0] || !-d $ARGV[1]) {
13          print "Usage : pagegen.pl <TMPLDIR> <OUTDIR>\n";          print "Usage : pagegen.pl <TMPLDIR> <OUTDIR>\n";
14          exit 1;          exit 1;
# Line 84  sub include_menu() Line 88  sub include_menu()
88    
89          open(MENU, "$srcdir/$menufile") || die;          open(MENU, "$srcdir/$menufile") || die;
90          while(<MENU>) {          while(<MENU>) {
91                    s/_PJHOME_/$pjhome/g;
92                    s/_BASE_/$base/g;
93                  print $stream $_;                  print $stream $_;
94          }          }
95          close(MENU);          close(MENU);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26