[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : phil
Repository : xara
Revision   : 1207
Date       : Mon May 29 20:42:57 BST 2006

Changed paths:
   M /Trunk/XaraLX/Scripts/build-resources.pl

Tweaks to aid usage from an XCode project. Alex: you may want to tidy these things up.


Diff:
Index: Trunk/XaraLX/Scripts/build-resources.pl
===================================================================
--- Trunk/XaraLX/Scripts/build-resources.pl	(revision 1206)
+++ Trunk/XaraLX/Scripts/build-resources.pl	(revision 1207)
@@ -75,6 +75,9 @@
 	    "version|n=s" => \$version,
 	    "user|u=s" => \$user,
 	    "xaralanguage|x=s" => \$xaralanguage,
+		"wxrc=s" => \$wxrc,
+		"xgettext|g=s" => \$xgettext,
+		"checksum=s" => \$checksum,
 	    "help!" => \$help ) || usage ("Bad option");
 
 usage() if ($help);
@@ -370,15 +373,17 @@
     push @uniqstrings, $j;
 }
 
-my $n=1;
-open (XGETTEXT, "|".$xgettext.' --from-code ISO-8859-1 --force-po -k_ -C -i - --no-location --copyright-holder "Xara Group Ltd" --msgid-bugs-address=bugs@xxxxxxxx -d xaralx -o '.$outputdir."/xrc/xaralx.po") || die "Can't run $xgettext: $!";
-foreach $i (@uniqstrings)
+if ($xgettext ne "skip")
 {
-    print STDERR "Line $n, translate: $i
" if ($verbose>2);
-    $n++;
-    print XGETTEXT "$i
";
+	my $n=1;
+	open (XGETTEXT, "|".$xgettext.' --from-code ISO-8859-1 --force-po -k_ -C -i - --no-location --copyright-holder "Xara Group Ltd" --msgid-bugs-address=bugs@xxxxxxxx -d xaralx -o '.$outputdir."/xrc/xaralx.po") || die "Can't run $xgettext: $!";
+	foreach $i (@uniqstrings)
+	{
+		print STDERR "Line $n, translate: $i
" if ($verbose>2);
+		$n++;
+		print XGETTEXT "$i
";
+	}
 }
-close (XGETTEXT);
 
 # Write the file to the wrong directory (deliberate)
 open(CHECK,">$outputdir/xrc/$xaralanguage/xrc.check") || die "Could not write xrc.check: $!";


Xara