FreeStyleWiki
Revision | 2da48f4ab687e3d28898e839e3f289c8837b01d9 (tree) |
---|---|
Zeit | 2019-02-14 20:58:29 |
Autor | kgsoft <kgsoft@user...> |
Commiter | kgsoft |
未定義変数の追加とドキュメント修正
@@ -9,10 +9,11 @@ | ||
9 | 9 | ¤Þ¤¿¡¢tools¤òÇÛÃÖ¤·¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Ë´Ä¶ÊÑ¿ôPATH¤òÄ̤·¤Æ¤ª¤¯¤ÈÊØÍø¤Ç¤¹¡£ |
10 | 10 | |
11 | 11 | !!wiki2html |
12 | - wiki2html.pl ¥½¡¼¥¹¥Õ¥¡¥¤¥ë [-title=¥¿¥¤¥È¥ë] [-css=¥¹¥¿¥¤¥ë¥·¡¼¥È] [-output=sjis|euc] | |
12 | + wiki2html.pl ¥½¡¼¥¹¥Õ¥¡¥¤¥ë [-title=¥¿¥¤¥È¥ë] [-css=¥¹¥¿¥¤¥ë¥·¡¼¥È] [-output=sjis|euc] [-farm=¥Õ¥¡¡¼¥à̾] | |
13 | 13 | :-title:HTML¥É¥¥å¥á¥ó¥È¤Î¥¿¥¤¥È¥ë¤ò»ØÄꤷ¤Þ¤¹¡£ |
14 | 14 | :-css:¥¹¥¿¥¤¥ë¥·¡¼¥È¤ò»ØÄꤷ¤Þ¤¹¡£ |
15 | 15 | :-output:½ÐÎÏ¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤òsjis¤Þ¤¿¤Ïeuc¤Ç»ØÄꤷ¤Þ¤¹¡£ |
16 | +:-farm:½ÐÎÏÂоݤ¬¥Õ¥¡¡¼¥à¤Î¾ì¹ç¤Ï¥Õ¥¡¡¼¥à̾¤ò»ØÄꤷ¤Þ¤¹¡£ | |
16 | 17 | |
17 | 18 | ¥½¡¼¥¹¥Õ¥¡¥¤¥ë¤Î»ØÄê¤Ïɬ¿Ü¤Ç¤¹¡£URL¤ò»ØÄꤹ¤ë¤È»ØÄꤷ¤¿URL¤«¤é¥½¡¼¥¹¤ò¼èÆÀ¤·¤Þ¤¹¡£ |
18 | 19 | ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ïɸ½à½ÐÎϤËHTML¤¬½ÐÎϤµ¤ì¤Þ¤¹¡£¥Õ¥¡¥¤¥ë¤ËÊݸ¤¹¤ë¾ì¹ç¤Ï°Ê²¼¤Î¤è¤¦¤Ë¥ê¥À¥¤¥ì¥¯¥È¤·¤Æ¤¯¤À¤µ¤¤¡£ |
@@ -14,7 +14,7 @@ use Cwd; | ||
14 | 14 | # °ú¿ô¤¬Â¤ê¤Ê¤¤ |
15 | 15 | #=========================================================== |
16 | 16 | if($#ARGV==-1){ |
17 | - die "wiki2html.pl filename [-title=title] [-output=sjis|euc]\n"; | |
17 | + die "wiki2html.pl filename [-title=title] [-css=stylesheet] [-output=sjis|euc] [-farm=farmname]\n"; | |
18 | 18 | } |
19 | 19 | |
20 | 20 | #=========================================================== |
@@ -23,7 +23,9 @@ if($#ARGV==-1){ | ||
23 | 23 | my $from = ""; |
24 | 24 | my $title = ""; |
25 | 25 | my $css = ""; |
26 | +my $input = ""; | |
26 | 27 | my $output = "euc"; |
28 | +my $farm = ""; | |
27 | 29 | my $count = 0; |
28 | 30 | my $current = cwd(); |
29 | 31 | chdir($ENV{'FSWIKI_HOME'}); |
@@ -65,7 +67,7 @@ my $url = $from; | ||
65 | 67 | $url =~ s/\?.*$//; |
66 | 68 | my $wiki = Wiki::Wiki2HTML->new('setup.dat', CGI->new($url)); |
67 | 69 | |
68 | -if($farm){ | |
70 | +if($farm ne ""){ | |
69 | 71 | $farm =~ s|\/$||; |
70 | 72 | $farm=~/^\// or $farm = "/$farm"; |
71 | 73 | $wiki->config('data_dir' , $wiki->config('data_dir' ).$farm); |