2 # SourceForge.JP Wiki manipulator
4 # This code is under GPL.
10 use lib '/Users/hylom/otptools';
13 use open IO => ':utf8';
29 my $filename= shift @ARGV;
35 #my $project = "test11";
36 my $project = "hpc-parallel";
37 my $filepath = file($filename);
38 my $parent_dir = $filepath->parent();
40 my $txtpath = $parent_dir->file("wiki.txt");
41 my $pagename = get_pagename($txtpath, $project);
43 my $sf = WWW::SourceForgeJP->new();
44 my $ret = $sf->Wiki->post_attachment( project => $project,
48 print "$filepath: upload succeed.\n";
50 print "$filepath: upload failed.\n";
54 my $fullpath = shift @_;
56 my $fh = $fullpath->open("r");
58 print STDERR "can't open: $fullpath: $!";