changeset 20234:a02994afdb43

applied changes from 4dd446ee59f869036e9065d0f45270444f319f1d through f6deeedd3d31f0863466fff4c81816aee12122a6
author Richard Laager <rlaager@wiktel.com>
date Fri, 28 Sep 2007 15:53:36 +0000
parents ef5cdffa31d4
children 6d15c55ef3cd
files po/stats.pl
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/po/stats.pl	Fri Sep 28 15:53:03 2007 +0000
+++ b/po/stats.pl	Fri Sep 28 15:53:36 2007 +0000
@@ -63,6 +63,10 @@
 	$po = $pos[$index];
 	print STDERR "$po..." if($ARGV[0] eq '-v');
 	system("msgmerge $po.po $PACKAGE.pot -o $po.new 2>/dev/null");
+	if (($? & 127) == 2) {
+		printf STDERR "Caught keyboard interrupt--exiting\n";
+		exit
+	}
 	$_ = `msgfmt --statistics $po.new -o /dev/null 2>&1`;
 	chomp;
 	if(/(\d+) translated message/) { $trans = $1; }