Run of fresh-snapshots for apertium-eval-translator

Try this locally (using the lintian-brush package):

debcheckout apertium-eval-translator
cd apertium-eval-translator
new-upstream --snapshot

Merge these changes:

Summary

Merged new upstream version: 1.2.1+git20210126.1.3ae7195 (was: 1.2.1).

Diff

Branch: main

diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..fcadb2c
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+* text eol=lf
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ec121a9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+CMakeCache.txt
+CMakeFiles
+Makefile
+cmake_install.cmake
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6e03c84..7f85d2a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,15 +4,22 @@ project(apertium-eval-translator
 	LANGUAGES NONE
 	)
 
-install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/apertium-eval-translator.pl"
+install(PROGRAMS "apertium-eval-translator.pl"
 	DESTINATION bin
 	RENAME "apertium-eval-translator"
 	)
 
-file(READ "${CMAKE_CURRENT_SOURCE_DIR}/beam-eval-until-stable" _tmp)
+install(PROGRAMS "apertium-eval-translator-line.pl"
+	DESTINATION bin
+	RENAME "apertium-eval-translator-line"
+	)
+
+file(READ "beam-eval-until-stable" _tmp)
 string(REPLACE "apertium-eval-translator.pl" "apertium-eval-translator" _tmp "${_tmp}")
 file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/beam-eval-until-stable" "${_tmp}")
 
-install(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/beam-eval-until-stable"
+install(PROGRAMS
+	"apertium-eval"
+	"${CMAKE_CURRENT_BINARY_DIR}/beam-eval-until-stable"
 	DESTINATION bin
 	)
diff --git a/apertium-eval-translator-line.pl b/apertium-eval-translator-line.pl
index a60e962..939cd5b 100755
--- a/apertium-eval-translator-line.pl
+++ b/apertium-eval-translator-line.pl
@@ -176,7 +176,7 @@ __END__
 
 =head1 SYNOPSIS
 
-apertium-eval-translator -test testfile -ref reffile
+apertium-eval-translator-line -test testfile -ref reffile
 
 Options:
 
diff --git a/autogen.sh b/autogen.sh
index 35ad35b..812b0d3 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 args=()
 
diff --git a/bleu.sh b/bleu.sh
index dc90c1f..f18c35d 100755
--- a/bleu.sh
+++ b/bleu.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 SRC=$1
 REF=$2
@@ -24,7 +24,7 @@ function gen_xml_file {
   echo "<"$2" setid=\"mteval-01\" srclang=\"Source\" trglang=\"Target\" refid=\""$4"\" sysid=\""$4"\">" >> $3
 
   echo "<doc docid=\"01\" genre=\"genre\">" >> $3
-  cat  $1 | gawk 'BEGIN{id=1}{print "<p><seg id=\""id"\">"$0"</seg></p>"; id++}' >> $3
+  cat  $1 | sed 's/\&//g' | gawk 'BEGIN{id=1}{print "<p><seg id=\""id"\">"$0"</seg></p>"; id++}' >> $3
   echo "</doc>" >> $3
   echo "</"$2">" >> $3
 
@@ -36,6 +36,6 @@ gen_xml_file $SRC "srcset" $SRC"-"$$".xml" "SYS"
 gen_xml_file $TEST "tstset" $TEST"-"$$".xml" "SYS"
 gen_xml_file $REF "refset" $REF"-"$$".xml" "SYS"
 
-mteval-v13a.pl -r $REF-$$.xml -s $SRC-$$.xml -t $TEST-$$.xml | grep "BLEU score" | gawk '{print $8}'
+./mteval-v14.pl -r $REF-$$.xml -s $SRC-$$.xml -t $TEST-$$.xml | grep "BLEU score" | gawk '{print $8}'
 
 rm -f $SRC"-"$$".xml" $TEST"-"$$".xml" $REF"-"$$".xml"
diff --git a/debian/changelog b/debian/changelog
index 8f9baf3..de49ff0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+apertium-eval-translator (1.2.1+git20210126.1.3ae7195-1) UNRELEASED; urgency=low
+
+  * New upstream snapshot.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Tue, 01 Jun 2021 04:39:30 -0000
+
 apertium-eval-translator (1.2.1-2) unstable; urgency=medium
 
   * Source only upload.

Branch: pristine-tar

diff --git a/apertium-eval-translator_1.2.1+git20210126.1.3ae7195.orig.tar.gz.delta b/apertium-eval-translator_1.2.1+git20210126.1.3ae7195.orig.tar.gz.delta
new file mode 100644
index 0000000..0c989e9
Binary files /dev/null and b/apertium-eval-translator_1.2.1+git20210126.1.3ae7195.orig.tar.gz.delta differ
diff --git a/apertium-eval-translator_1.2.1+git20210126.1.3ae7195.orig.tar.gz.id b/apertium-eval-translator_1.2.1+git20210126.1.3ae7195.orig.tar.gz.id
new file mode 100644
index 0000000..e0a4194
--- /dev/null
+++ b/apertium-eval-translator_1.2.1+git20210126.1.3ae7195.orig.tar.gz.id
@@ -0,0 +1 @@
+7af0c0d4aa13d284c28ed0fea383833fd3d8fea7

Branch: upstream

Tag: upstream/1.2.1+git20210126.1.3ae7195

Diff is too long (more than 200 lines). Download the raw diff.

Debdiff

[The following lists of changes regard files as different if they have different names, permissions or owners.]

Files in second set of .debs but not in first

-rwxr-xr-x  root/root   /usr/bin/apertium-eval
-rwxr-xr-x  root/root   /usr/bin/apertium-eval-translator-line

No differences were encountered in the control files

Resulting package

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-snapshots apertium-eval-translator

Lintian Result

Full worker log Full build log Full dist log