diff options
author | Bas Zoetekouw <bas> | 2008-10-01 16:56:14 +0000 |
---|---|---|
committer | Bas Zoetekouw <bas> | 2008-10-01 16:56:14 +0000 |
commit | b5dcf0e1cc15ef906a6ecff5b8f83a657eb60fd1 (patch) | |
tree | b0edde41925f525406ef3999d76202608a705f8e /check_trans.pl | |
parent | 55b1c336bf4b8d5f73a5236ef3a7e502db56049b (diff) |
Add -l (show logs) option for check_trans.pl
CVS version numbers
check_trans.pl: 1.75 -> 1.76
Diffstat (limited to 'check_trans.pl')
-rwxr-xr-x | check_trans.pl | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/check_trans.pl b/check_trans.pl index 023d4f08cea..515c5a9b8e7 100755 --- a/check_trans.pl +++ b/check_trans.pl @@ -279,6 +279,17 @@ sub verbose; } } + # print log if requested and an update is needed + if ( $OPT{'l'} and $status == ST_NEEDSUPDATE ) + { + my $log = get_log( + $file_orig, + $rev_transl, + $revinfo_orig->{'cmt_rev'}, + ); + print $log; + } + # print diff if requested and an update is needed if ( $OPT{'d'} and $status == ST_NEEDSUPDATE ) { @@ -750,7 +761,7 @@ sub parse_cmdargs $OPT{s} = ''; # parse options - if ( not getopts( 'adghm:n:p:Qqs:TvV', \%OPT ) ) + if ( not getopts( 'adghlm:n:p:Qqs:TvV', \%OPT ) ) { show_help(); exit -1; |