OSDN Git Service

admin: JM-tl-modify.pl clears status/version field if -c is specified.
authorAkihiro MOTOKI <amotoki@gmail.com>
Wed, 30 May 2012 19:46:24 +0000 (04:46 +0900)
committerAkihiro MOTOKI <amotoki@gmail.com>
Wed, 30 May 2012 19:46:24 +0000 (04:46 +0900)
admin/JM-tl-modify.pl

index dcb6b4c..a80403b 100755 (executable)
@@ -120,9 +120,13 @@ while (<TLO>) {
     $ti{'tmail'} = $opts{"e"} if $opts{"e"};
 
     if ($opts{"c"}) {
+       $ti{'stat'} = '1st_non';
        $ti{'tdat'} = '';
        $ti{'tname'} = '';
        $ti{'tmail'} = '';
+       # Reset versions to the original ver.
+       $ti{'rver'} = $ti{'over'};
+       $ti{'dver'} = $ti{'over'};
     }
 
     my $tll = hash2line(%ti);