You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@joshua.apache.org by mj...@apache.org on 2017/02/01 01:28:00 UTC

[4/9] incubator-joshua git commit: don't copy grammar on failure if sorted

don't copy grammar on failure if sorted


Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/e80f0a5d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/e80f0a5d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/e80f0a5d

Branch: refs/heads/master
Commit: e80f0a5d8d9520f7e73582b8e559d244729e9cab
Parents: b324714
Author: Matt Post <po...@cs.jhu.edu>
Authored: Mon Jan 30 23:41:34 2017 -0500
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Mon Jan 30 23:41:34 2017 -0500

----------------------------------------------------------------------
 scripts/support/grammar-packer.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/e80f0a5d/scripts/support/grammar-packer.pl
----------------------------------------------------------------------
diff --git a/scripts/support/grammar-packer.pl b/scripts/support/grammar-packer.pl
index b8db301..f4a4a4d 100755
--- a/scripts/support/grammar-packer.pl
+++ b/scripts/support/grammar-packer.pl
@@ -115,6 +115,6 @@ if ($retval == 0) {
 } else {
   print STDERR "* FATAL: Couldn't pack the grammar.\n";
   print STDERR "* Copying sorted grammars ($grammars) to current directory.\n";
-  system("cp $grammars .");
+  system("cp $grammars .") unless $opts{s};
   exit 1;
 }