Skip to content

Commit

Permalink
Fix two buglets.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomazErjavec committed Nov 28, 2023
1 parent ce1501b commit 1af5881
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scripts/parlamint2distro.pl
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ sub usage {
if ($Version) {
$regiDir = $docsDir . '/registry';
$vertRegi = 'parlamint' . $Version . '_' . lc $countryCode;
$vertRegi =~ s/\.//; #e.g. 3.1 -> 31, so we will get e.g. parlamint31_at
$vertRegi =~ s/\.//g; #e.g. 3.1 -> 31, so we will get e.g. parlamint31_at
$vertRegi =~ s/-/_/g; #e.g. parlamint31_es-ct.regi to parlamint31_es_ct
$regiExt = 'regi'
}
Expand Down Expand Up @@ -424,7 +424,7 @@ sub cp_readme_top {
# en-ana: # Linguistically annotated corpus of parliamentary debates ParlaMint-AT-en.ana (translation to English)

while (<IN>) {
if (m|^# ParlaMint|) {
if (m|# ParlaMint|) {
($countryCode, $RegionalSuffix, $countryName) = m| ([A-Z]{2}(-[A-Z]{2})?) \((.+)\)$|
or die "FATAL ERROR: Bad line in README.md file: $_";
die "FATAL ERROR: Bad code $countryCode (!= $country) in $inFile\n" unless $country =~ /$countryCode/;
Expand Down

0 comments on commit 1af5881

Please sign in to comment.