From 9fd108444cdfb81d80346f2c22d469a540099984 Mon Sep 17 00:00:00 2001 From: Erik Huelsmann Date: Sun, 24 Sep 2023 21:09:15 +0200 Subject: [PATCH 1/4] Don't maintain a generated Languages.pm file Fixes #32 --- .github/workflows/test-perl.yml | 9 +++++---- perl/.gitignore | 1 + perl/Makefile | 2 +- perl/dist.ini | 8 +++++++- perl/lib/Gherkin/Generated/Languages.pm | 7 ------- 5 files changed, 14 insertions(+), 13 deletions(-) delete mode 100644 perl/lib/Gherkin/Generated/Languages.pm diff --git a/.github/workflows/test-perl.yml b/.github/workflows/test-perl.yml index 48b483155..48bc5cac2 100644 --- a/.github/workflows/test-perl.yml +++ b/.github/workflows/test-perl.yml @@ -35,12 +35,13 @@ jobs: install-modules-with: cpanm working-directory: perl + # Run acceptance tests first! They build Languages.pm + - name: run acceptance tests + run: make acceptance + working-directory: perl + - name: run tests run: | prove -l AUTHOR_TESTS=1 prove -l working-directory: perl - - - name: run acceptance tests - run: make acceptance - working-directory: perl diff --git a/perl/.gitignore b/perl/.gitignore index fd2094f15..61d6e6167 100644 --- a/perl/.gitignore +++ b/perl/.gitignore @@ -6,3 +6,4 @@ perl5/ .cpanfile_dependencies cpanfile.snapshot CHANGELOG.md +lib/Gherkin/Generated/Languages.pm diff --git a/perl/Makefile b/perl/Makefile index 4efce67af..e5a7838b6 100644 --- a/perl/Makefile +++ b/perl/Makefile @@ -43,7 +43,7 @@ clean: ## Remove all build artifacts and files generated by the acceptance tests .DELETE_ON_ERROR: -acceptance: .built $(TOKENS) $(ASTS) $(PICKLES) $(SOURCES) $(ERRORS) ## Build acceptance test dir and compare results with reference +acceptance: .built lib/Gherkin/Generated/Languages.pm $(TOKENS) $(ASTS) $(PICKLES) $(SOURCES) $(ERRORS) ## Build acceptance test dir and compare results with reference .built: perl5 $(SOURCE_FILES) touch $@ diff --git a/perl/dist.ini b/perl/dist.ini index e65e101f7..eea7fa7c0 100644 --- a/perl/dist.ini +++ b/perl/dist.ini @@ -36,10 +36,16 @@ exclude_filename=gherkin-perl.razor exclude_filename=Makefile exclude_filename=VERSION -[GatherFile] +[GatherFile / CHANGELOG.md] ; explicitly add unversioned files root=../ filename=CHANGELOG.md +[GatherFile / GeneratedLanguages] +filename=lib/Gherkin/Generated/Languages.pm + [Hook::VersionProvider] . = my $v = `cat ./VERSION`; chomp( $v ); $v; + +[Run::BeforeBuild] +run = helper-scripts/build_languages.pl >lib/Gherkin/Generated/Languages.pm diff --git a/perl/lib/Gherkin/Generated/Languages.pm b/perl/lib/Gherkin/Generated/Languages.pm deleted file mode 100644 index b231ca0fd..000000000 --- a/perl/lib/Gherkin/Generated/Languages.pm +++ /dev/null @@ -1,7 +0,0 @@ -package Gherkin::Generated::Languages; - -use strict; -use warnings; -use utf8; -our $data = {'af',{'and',['* ','En '],'background',['Agtergrond'],'but',['* ','Maar '],'examples',['Voorbeelde'],'feature',['Funksie','Besigheid Behoefte','Vermoë'],'given',['* ','Gegewe '],'name','Afrikaans','native','Afrikaans','rule',['Regel'],'scenario',['Voorbeeld','Situasie'],'scenarioOutline',['Situasie Uiteensetting'],'then',['* ','Dan '],'when',['* ','Wanneer ']},'am',{'and',['* ','Եվ '],'background',['Կոնտեքստ'],'but',['* ','Բայց '],'examples',['Օրինակներ'],'feature',['Ֆունկցիոնալություն','Հատկություն'],'given',['* ','Դիցուք '],'name','Armenian','native','հայերեն','rule',['Rule'],'scenario',['Օրինակ','Սցենար'],'scenarioOutline',['Սցենարի կառուցվացքը'],'then',['* ','Ապա '],'when',['* ','Եթե ','Երբ ']},'amh',{'and',['* ','እና '],'background',['ቅድመ ሁኔታ','መነሻ','መነሻ ሀሳብ'],'but',['* ','ግን '],'examples',['ምሳሌዎች','ሁናቴዎች'],'feature',['ስራ','የተፈለገው ስራ','የሚፈለገው ድርጊት'],'given',['* ','የተሰጠ '],'name','Amharic','native','አማርኛ','rule',['ህግ'],'scenario',['ምሳሌ','ሁናቴ'],'scenarioOutline',['ሁናቴ ዝርዝር','ሁናቴ አብነት'],'then',['* ','ከዚያ '],'when',['* ','መቼ ']},'an',{'and',['* ','Y ','E '],'background',['Antecedents'],'but',['* ','Pero '],'examples',['Eixemplos'],'feature',['Caracteristica'],'given',['* ','Dau ','Dada ','Daus ','Dadas '],'name','Aragonese','native','Aragonés','rule',['Rule'],'scenario',['Eixemplo','Caso'],'scenarioOutline',['Esquema del caso'],'then',['* ','Alavez ','Allora ','Antonces '],'when',['* ','Cuan ']},'ar',{'and',['* ','و '],'background',['الخلفية'],'but',['* ','لكن '],'examples',['امثلة'],'feature',['خاصية'],'given',['* ','بفرض '],'name','Arabic','native','العربية','rule',['Rule'],'scenario',['مثال','سيناريو'],'scenarioOutline',['سيناريو مخطط'],'then',['* ','اذاً ','ثم '],'when',['* ','متى ','عندما ']},'ast',{'and',['* ','Y ','Ya '],'background',['Antecedentes'],'but',['* ','Peru '],'examples',['Exemplos'],'feature',['Carauterística'],'given',['* ','Dáu ','Dada ','Daos ','Daes '],'name','Asturian','native','asturianu','rule',['Rule'],'scenario',['Exemplo','Casu'],'scenarioOutline',['Esbozu del casu'],'then',['* ','Entós '],'when',['* ','Cuando ']},'az',{'and',['* ','Və ','Həm '],'background',['Keçmiş','Kontekst'],'but',['* ','Amma ','Ancaq '],'examples',['Nümunələr'],'feature',['Özəllik'],'given',['* ','Tutaq ki ','Verilir '],'name','Azerbaijani','native','Azərbaycanca','rule',['Rule'],'scenario',['Nümunə','Ssenari'],'scenarioOutline',['Ssenarinin strukturu'],'then',['* ','O halda '],'when',['* ','Əgər ','Nə vaxt ki ']},'bg',{'and',['* ','И '],'background',['Предистория'],'but',['* ','Но '],'examples',['Примери'],'feature',['Функционалност'],'given',['* ','Дадено '],'name','Bulgarian','native','български','rule',['Правило'],'scenario',['Пример','Сценарий'],'scenarioOutline',['Рамка на сценарий'],'then',['* ','То '],'when',['* ','Когато ']},'bm',{'and',['* ','Dan '],'background',['Latar Belakang'],'but',['* ','Tetapi ','Tapi '],'examples',['Contoh'],'feature',['Fungsi'],'given',['* ','Diberi ','Bagi '],'name','Malay','native','Bahasa Melayu','rule',['Rule'],'scenario',['Senario','Situasi','Keadaan'],'scenarioOutline',['Kerangka Senario','Kerangka Situasi','Kerangka Keadaan','Garis Panduan Senario'],'then',['* ','Maka ','Kemudian '],'when',['* ','Apabila ']},'bs',{'and',['* ','I ','A '],'background',['Pozadina'],'but',['* ','Ali '],'examples',['Primjeri'],'feature',['Karakteristika'],'given',['* ','Dato '],'name','Bosnian','native','Bosanski','rule',['Rule'],'scenario',['Primjer','Scenariju','Scenario'],'scenarioOutline',['Scenariju-obris','Scenario-outline'],'then',['* ','Zatim '],'when',['* ','Kada ']},'ca',{'and',['* ','I '],'background',['Rerefons','Antecedents'],'but',['* ','Però '],'examples',['Exemples'],'feature',['Característica','Funcionalitat'],'given',['* ','Donat ','Donada ','Atès ','Atesa '],'name','Catalan','native','català','rule',['Rule'],'scenario',['Exemple','Escenari'],'scenarioOutline',['Esquema de l\'escenari'],'then',['* ','Aleshores ','Cal '],'when',['* ','Quan ']},'cs',{'and',['* ','A také ','A '],'background',['Pozadí','Kontext'],'but',['* ','Ale '],'examples',['Příklady'],'feature',['Požadavek'],'given',['* ','Pokud ','Za předpokladu '],'name','Czech','native','Česky','rule',['Pravidlo'],'scenario',['Příklad','Scénář'],'scenarioOutline',['Náčrt Scénáře','Osnova scénáře'],'then',['* ','Pak '],'when',['* ','Když ']},'cy-GB',{'and',['* ','A '],'background',['Cefndir'],'but',['* ','Ond '],'examples',['Enghreifftiau'],'feature',['Arwedd'],'given',['* ','Anrhegedig a '],'name','Welsh','native','Cymraeg','rule',['Rule'],'scenario',['Enghraifft','Scenario'],'scenarioOutline',['Scenario Amlinellol'],'then',['* ','Yna '],'when',['* ','Pryd ']},'da',{'and',['* ','Og '],'background',['Baggrund'],'but',['* ','Men '],'examples',['Eksempler'],'feature',['Egenskab'],'given',['* ','Givet '],'name','Danish','native','dansk','rule',['Rule'],'scenario',['Eksempel','Scenarie'],'scenarioOutline',['Abstrakt Scenario'],'then',['* ','Så '],'when',['* ','Når ']},'de',{'and',['* ','Und '],'background',['Grundlage','Hintergrund','Voraussetzungen','Vorbedingungen'],'but',['* ','Aber '],'examples',['Beispiele'],'feature',['Funktionalität','Funktion'],'given',['* ','Angenommen ','Gegeben sei ','Gegeben seien '],'name','German','native','Deutsch','rule',['Rule','Regel'],'scenario',['Beispiel','Szenario'],'scenarioOutline',['Szenariogrundriss','Szenarien'],'then',['* ','Dann '],'when',['* ','Wenn ']},'el',{'and',['* ','Και '],'background',['Υπόβαθρο'],'but',['* ','Αλλά '],'examples',['Παραδείγματα','Σενάρια'],'feature',['Δυνατότητα','Λειτουργία'],'given',['* ','Δεδομένου '],'name','Greek','native','Ελληνικά','rule',['Rule'],'scenario',['Παράδειγμα','Σενάριο'],'scenarioOutline',['Περιγραφή Σεναρίου','Περίγραμμα Σεναρίου'],'then',['* ','Τότε '],'when',['* ','Όταν ']},'em',{'and',['* ','😂'],'background',['💤'],'but',['* ','😔'],'examples',['📓'],'feature',['📚'],'given',['* ','😐'],'name','Emoji','native','😀','rule',['Rule'],'scenario',['🥒','📕'],'scenarioOutline',['📖'],'then',['* ','🙏'],'when',['* ','🎬']},'en',{'and',['* ','And '],'background',['Background'],'but',['* ','But '],'examples',['Examples','Scenarios'],'feature',['Feature','Business Need','Ability'],'given',['* ','Given '],'name','English','native','English','rule',['Rule'],'scenario',['Example','Scenario'],'scenarioOutline',['Scenario Outline','Scenario Template'],'then',['* ','Then '],'when',['* ','When ']},'en-Scouse',{'and',['* ','An '],'background',['Dis is what went down'],'but',['* ','Buh '],'examples',['Examples'],'feature',['Feature'],'given',['* ','Givun ','Youse know when youse got '],'name','Scouse','native','Scouse','rule',['Rule'],'scenario',['The thing of it is'],'scenarioOutline',['Wharrimean is'],'then',['* ','Dun ','Den youse gotta '],'when',['* ','Wun ','Youse know like when ']},'en-au',{'and',['* ','Too right '],'background',['First off'],'but',['* ','Yeah nah '],'examples',['You\'ll wanna'],'feature',['Pretty much'],'given',['* ','Y\'know '],'name','Australian','native','Australian','rule',['Rule'],'scenario',['Awww, look mate'],'scenarioOutline',['Reckon it\'s like'],'then',['* ','But at the end of the day I reckon '],'when',['* ','It\'s just unbelievable ']},'en-lol',{'and',['* ','AN '],'background',['B4'],'but',['* ','BUT '],'examples',['EXAMPLZ'],'feature',['OH HAI'],'given',['* ','I CAN HAZ '],'name','LOLCAT','native','LOLCAT','rule',['Rule'],'scenario',['MISHUN'],'scenarioOutline',['MISHUN SRSLY'],'then',['* ','DEN '],'when',['* ','WEN ']},'en-old',{'and',['* ','Ond ','7 '],'background',['Aer','Ær'],'but',['* ','Ac '],'examples',['Se the','Se þe','Se ðe'],'feature',['Hwaet','Hwæt'],'given',['* ','Thurh ','Þurh ','Ðurh '],'name','Old English','native','Englisc','rule',['Rule'],'scenario',['Swa'],'scenarioOutline',['Swa hwaer swa','Swa hwær swa'],'then',['* ','Tha ','Þa ','Ða ','Tha the ','Þa þe ','Ða ðe '],'when',['* ','Bæþsealf ','Bæþsealfa ','Bæþsealfe ','Ciricæw ','Ciricæwe ','Ciricæwa ']},'en-pirate',{'and',['* ','Aye '],'background',['Yo-ho-ho'],'but',['* ','Avast! '],'examples',['Dead men tell no tales'],'feature',['Ahoy matey!'],'given',['* ','Gangway! '],'name','Pirate','native','Pirate','rule',['Rule'],'scenario',['Heave to'],'scenarioOutline',['Shiver me timbers'],'then',['* ','Let go and haul '],'when',['* ','Blimey! ']},'en-tx',{'and',['Come hell or high water '],'background',['Lemme tell y\'all a story'],'but',['Well now hold on, I\'ll you what '],'examples',['Now that\'s a story longer than a cattle drive in July'],'feature',['This ain’t my first rodeo','All gussied up'],'given',['Fixin\' to ','All git out '],'name','Texas','native','Texas','rule',['Rule '],'scenario',['All hat and no cattle'],'scenarioOutline',['Serious as a snake bite','Busy as a hound in flea season'],'then',['There’s no tree but bears some fruit '],'when',['Quick out of the chute ']},'eo',{'and',['* ','Kaj '],'background',['Fono'],'but',['* ','Sed '],'examples',['Ekzemploj'],'feature',['Trajto'],'given',['* ','Donitaĵo ','Komence '],'name','Esperanto','native','Esperanto','rule',['Rule'],'scenario',['Ekzemplo','Scenaro','Kazo'],'scenarioOutline',['Konturo de la scenaro','Skizo','Kazo-skizo'],'then',['* ','Do '],'when',['* ','Se ']},'es',{'and',['* ','Y ','E '],'background',['Antecedentes'],'but',['* ','Pero '],'examples',['Ejemplos'],'feature',['Característica','Necesidad del negocio','Requisito'],'given',['* ','Dado ','Dada ','Dados ','Dadas '],'name','Spanish','native','español','rule',['Regla','Regla de negocio'],'scenario',['Ejemplo','Escenario'],'scenarioOutline',['Esquema del escenario'],'then',['* ','Entonces '],'when',['* ','Cuando ']},'et',{'and',['* ','Ja '],'background',['Taust'],'but',['* ','Kuid '],'examples',['Juhtumid'],'feature',['Omadus'],'given',['* ','Eeldades '],'name','Estonian','native','eesti keel','rule',['Reegel'],'scenario',['Juhtum','Stsenaarium'],'scenarioOutline',['Raamjuhtum','Raamstsenaarium'],'then',['* ','Siis '],'when',['* ','Kui ']},'fa',{'and',['* ','و '],'background',['زمینه'],'but',['* ','اما '],'examples',['نمونه ها'],'feature',['وِیژگی'],'given',['* ','با فرض '],'name','Persian','native','فارسی','rule',['Rule'],'scenario',['مثال','سناریو'],'scenarioOutline',['الگوی سناریو'],'then',['* ','آنگاه '],'when',['* ','هنگامی ']},'fi',{'and',['* ','Ja '],'background',['Tausta'],'but',['* ','Mutta '],'examples',['Tapaukset'],'feature',['Ominaisuus'],'given',['* ','Oletetaan '],'name','Finnish','native','suomi','rule',['Rule'],'scenario',['Tapaus'],'scenarioOutline',['Tapausaihio'],'then',['* ','Niin '],'when',['* ','Kun ']},'fr',{'and',['* ','Et que ','Et qu\'','Et '],'background',['Contexte'],'but',['* ','Mais que ','Mais qu\'','Mais '],'examples',['Exemples'],'feature',['Fonctionnalité'],'given',['* ','Soit ','Sachant que ','Sachant qu\'','Sachant ','Etant donné que ','Etant donné qu\'','Etant donné ','Etant donnée ','Etant donnés ','Etant données ','Étant donné que ','Étant donné qu\'','Étant donné ','Étant donnée ','Étant donnés ','Étant données '],'name','French','native','français','rule',['Règle'],'scenario',['Exemple','Scénario'],'scenarioOutline',['Plan du scénario','Plan du Scénario'],'then',['* ','Alors ','Donc '],'when',['* ','Quand ','Lorsque ','Lorsqu\'']},'ga',{'and',['* ','Agus'],'background',['Cúlra'],'but',['* ','Ach'],'examples',['Samplaí'],'feature',['Gné'],'given',['* ','Cuir i gcás go','Cuir i gcás nach','Cuir i gcás gur','Cuir i gcás nár'],'name','Irish','native','Gaeilge','rule',['Rule'],'scenario',['Sampla','Cás'],'scenarioOutline',['Cás Achomair'],'then',['* ','Ansin'],'when',['* ','Nuair a','Nuair nach','Nuair ba','Nuair nár']},'gj',{'and',['* ','અને '],'background',['બેકગ્રાઉન્ડ'],'but',['* ','પણ '],'examples',['ઉદાહરણો'],'feature',['લક્ષણ','વ્યાપાર જરૂર','ક્ષમતા'],'given',['* ','આપેલ છે '],'name','Gujarati','native','ગુજરાતી','rule',['Rule'],'scenario',['ઉદાહરણ','સ્થિતિ'],'scenarioOutline',['પરિદ્દશ્ય રૂપરેખા','પરિદ્દશ્ય ઢાંચો'],'then',['* ','પછી '],'when',['* ','ક્યારે ']},'gl',{'and',['* ','E '],'background',['Contexto'],'but',['* ','Mais ','Pero '],'examples',['Exemplos'],'feature',['Característica'],'given',['* ','Dado ','Dada ','Dados ','Dadas '],'name','Galician','native','galego','rule',['Rule'],'scenario',['Exemplo','Escenario'],'scenarioOutline',['Esbozo do escenario'],'then',['* ','Entón ','Logo '],'when',['* ','Cando ']},'he',{'and',['* ','וגם '],'background',['רקע'],'but',['* ','אבל '],'examples',['דוגמאות'],'feature',['תכונה'],'given',['* ','בהינתן '],'name','Hebrew','native','עברית','rule',['כלל'],'scenario',['דוגמא','תרחיש'],'scenarioOutline',['תבנית תרחיש'],'then',['* ','אז ','אזי '],'when',['* ','כאשר ']},'hi',{'and',['* ','और ','तथा '],'background',['पृष्ठभूमि'],'but',['* ','पर ','परन्तु ','किन्तु '],'examples',['उदाहरण'],'feature',['रूप लेख'],'given',['* ','अगर ','यदि ','चूंकि '],'name','Hindi','native','हिंदी','rule',['नियम'],'scenario',['परिदृश्य'],'scenarioOutline',['परिदृश्य रूपरेखा'],'then',['* ','तब ','तदा '],'when',['* ','जब ','कदा ']},'hr',{'and',['* ','I '],'background',['Pozadina'],'but',['* ','Ali '],'examples',['Primjeri','Scenariji'],'feature',['Osobina','Mogućnost','Mogucnost'],'given',['* ','Zadan ','Zadani ','Zadano ','Ukoliko '],'name','Croatian','native','hrvatski','rule',['Rule'],'scenario',['Primjer','Scenarij'],'scenarioOutline',['Skica','Koncept'],'then',['* ','Onda '],'when',['* ','Kada ','Kad ']},'ht',{'and',['* ','Ak ','Epi ','E '],'background',['Kontèks','Istorik'],'but',['* ','Men '],'examples',['Egzanp'],'feature',['Karakteristik','Mak','Fonksyonalite'],'given',['* ','Sipoze ','Sipoze ke ','Sipoze Ke '],'name','Creole','native','kreyòl','rule',['Rule'],'scenario',['Senaryo'],'scenarioOutline',['Plan senaryo','Plan Senaryo','Senaryo deskripsyon','Senaryo Deskripsyon','Dyagram senaryo','Dyagram Senaryo'],'then',['* ','Lè sa a ','Le sa a '],'when',['* ','Lè ','Le ']},'hu',{'and',['* ','És '],'background',['Háttér'],'but',['* ','De '],'examples',['Példák'],'feature',['Jellemző'],'given',['* ','Amennyiben ','Adott '],'name','Hungarian','native','magyar','rule',['Szabály'],'scenario',['Példa','Forgatókönyv'],'scenarioOutline',['Forgatókönyv vázlat'],'then',['* ','Akkor '],'when',['* ','Majd ','Ha ','Amikor ']},'id',{'and',['* ','Dan '],'background',['Dasar','Latar Belakang'],'but',['* ','Tapi ','Tetapi '],'examples',['Contoh','Misal'],'feature',['Fitur'],'given',['* ','Dengan ','Diketahui ','Diasumsikan ','Bila ','Jika '],'name','Indonesian','native','Bahasa Indonesia','rule',['Rule','Aturan'],'scenario',['Skenario'],'scenarioOutline',['Skenario konsep','Garis-Besar Skenario'],'then',['* ','Maka ','Kemudian '],'when',['* ','Ketika ']},'is',{'and',['* ','Og '],'background',['Bakgrunnur'],'but',['* ','En '],'examples',['Dæmi','Atburðarásir'],'feature',['Eiginleiki'],'given',['* ','Ef '],'name','Icelandic','native','Íslenska','rule',['Rule'],'scenario',['Atburðarás'],'scenarioOutline',['Lýsing Atburðarásar','Lýsing Dæma'],'then',['* ','Þá '],'when',['* ','Þegar ']},'it',{'and',['* ','E '],'background',['Contesto'],'but',['* ','Ma '],'examples',['Esempi'],'feature',['Funzionalità','Esigenza di Business','Abilità'],'given',['* ','Dato ','Data ','Dati ','Date '],'name','Italian','native','italiano','rule',['Regola'],'scenario',['Esempio','Scenario'],'scenarioOutline',['Schema dello scenario'],'then',['* ','Allora '],'when',['* ','Quando ']},'ja',{'and',['* ','且つ','かつ'],'background',['背景'],'but',['* ','然し','しかし','但し','ただし'],'examples',['例','サンプル'],'feature',['フィーチャ','機能'],'given',['* ','前提'],'name','Japanese','native','日本語','rule',['ルール'],'scenario',['シナリオ'],'scenarioOutline',['シナリオアウトライン','シナリオテンプレート','テンプレ','シナリオテンプレ'],'then',['* ','ならば'],'when',['* ','もし']},'jv',{'and',['* ','Lan '],'background',['Dasar'],'but',['* ','Tapi ','Nanging ','Ananging '],'examples',['Conto','Contone'],'feature',['Fitur'],'given',['* ','Nalika ','Nalikaning '],'name','Javanese','native','Basa Jawa','rule',['Rule'],'scenario',['Skenario'],'scenarioOutline',['Konsep skenario'],'then',['* ','Njuk ','Banjur '],'when',['* ','Manawa ','Menawa ']},'ka',{'and',['* ','და ','ასევე '],'background',['კონტექსტი'],'but',['* ','მაგრამ ','თუმცა '],'examples',['მაგალითები'],'feature',['თვისება','მოთხოვნა'],'given',['* ','მოცემული ','მოცემულია ','ვთქვათ '],'name','Georgian','native','ქართული','rule',['წესი'],'scenario',['მაგალითად','მაგალითი','მაგ','სცენარი'],'scenarioOutline',['სცენარის ნიმუში','სცენარის შაბლონი','ნიმუში','შაბლონი'],'then',['* ','მაშინ '],'when',['* ','როდესაც ','როცა ','როგორც კი ','თუ ']},'kn',{'and',['* ','ಮತ್ತು '],'background',['ಹಿನ್ನೆಲೆ'],'but',['* ','ಆದರೆ '],'examples',['ಉದಾಹರಣೆಗಳು'],'feature',['ಹೆಚ್ಚಳ'],'given',['* ','ನೀಡಿದ '],'name','Kannada','native','ಕನ್ನಡ','rule',['Rule'],'scenario',['ಉದಾಹರಣೆ','ಕಥಾಸಾರಾಂಶ'],'scenarioOutline',['ವಿವರಣೆ'],'then',['* ','ನಂತರ '],'when',['* ','ಸ್ಥಿತಿಯನ್ನು ']},'ko',{'and',['* ','그리고'],'background',['배경'],'but',['* ','하지만','단'],'examples',['예'],'feature',['기능'],'given',['* ','조건','먼저'],'name','Korean','native','한국어','rule',['Rule'],'scenario',['시나리오'],'scenarioOutline',['시나리오 개요'],'then',['* ','그러면'],'when',['* ','만일','만약']},'lt',{'and',['* ','Ir '],'background',['Kontekstas'],'but',['* ','Bet '],'examples',['Pavyzdžiai','Scenarijai','Variantai'],'feature',['Savybė'],'given',['* ','Duota '],'name','Lithuanian','native','lietuvių kalba','rule',['Rule'],'scenario',['Pavyzdys','Scenarijus'],'scenarioOutline',['Scenarijaus šablonas'],'then',['* ','Tada '],'when',['* ','Kai ']},'lu',{'and',['* ','an ','a '],'background',['Hannergrond'],'but',['* ','awer ','mä '],'examples',['Beispiller'],'feature',['Funktionalitéit'],'given',['* ','ugeholl '],'name','Luxemburgish','native','Lëtzebuergesch','rule',['Rule'],'scenario',['Beispill','Szenario'],'scenarioOutline',['Plang vum Szenario'],'then',['* ','dann '],'when',['* ','wann ']},'lv',{'and',['* ','Un '],'background',['Konteksts','Situācija'],'but',['* ','Bet '],'examples',['Piemēri','Paraugs'],'feature',['Funkcionalitāte','Fīča'],'given',['* ','Kad '],'name','Latvian','native','latviešu','rule',['Rule'],'scenario',['Piemērs','Scenārijs'],'scenarioOutline',['Scenārijs pēc parauga'],'then',['* ','Tad '],'when',['* ','Ja ']},'mk-Cyrl',{'and',['* ','И '],'background',['Контекст','Содржина'],'but',['* ','Но '],'examples',['Примери','Сценарија'],'feature',['Функционалност','Бизнис потреба','Можност'],'given',['* ','Дадено ','Дадена '],'name','Macedonian','native','Македонски','rule',['Rule'],'scenario',['Пример','Сценарио','На пример'],'scenarioOutline',['Преглед на сценарија','Скица','Концепт'],'then',['* ','Тогаш '],'when',['* ','Кога ']},'mk-Latn',{'and',['* ','I '],'background',['Kontekst','Sodrzhina'],'but',['* ','No '],'examples',['Primeri','Scenaria'],'feature',['Funkcionalnost','Biznis potreba','Mozhnost'],'given',['* ','Dadeno ','Dadena '],'name','Macedonian (Latin)','native','Makedonski (Latinica)','rule',['Rule'],'scenario',['Scenario','Na primer'],'scenarioOutline',['Pregled na scenarija','Skica','Koncept'],'then',['* ','Togash '],'when',['* ','Koga ']},'mn',{'and',['* ','Мөн ','Тэгээд '],'background',['Агуулга'],'but',['* ','Гэхдээ ','Харин '],'examples',['Тухайлбал'],'feature',['Функц','Функционал'],'given',['* ','Өгөгдсөн нь ','Анх '],'name','Mongolian','native','монгол','rule',['Rule'],'scenario',['Сценар'],'scenarioOutline',['Сценарын төлөвлөгөө'],'then',['* ','Тэгэхэд ','Үүний дараа '],'when',['* ','Хэрэв ']},'mr',{'and',['* ','आणि ','तसेच '],'background',['पार्श्वभूमी'],'but',['* ','पण ','परंतु '],'examples',['उदाहरण'],'feature',['वैशिष्ट्य','सुविधा'],'given',['* ','जर','दिलेल्या प्रमाणे '],'name','Marathi','native','मराठी','rule',['नियम'],'scenario',['परिदृश्य'],'scenarioOutline',['परिदृश्य रूपरेखा'],'then',['* ','मग ','तेव्हा '],'when',['* ','जेव्हा ']},'ne',{'and',['* ','र ','अनि '],'background',['पृष्ठभूमी'],'but',['* ','तर '],'examples',['उदाहरण','उदाहरणहरु'],'feature',['सुविधा','विशेषता'],'given',['* ','दिइएको ','दिएको ','यदि '],'name','Nepali','native','नेपाली','rule',['नियम'],'scenario',['परिदृश्य'],'scenarioOutline',['परिदृश्य रूपरेखा'],'then',['* ','त्यसपछि ','अनी '],'when',['* ','जब ']},'nl',{'and',['* ','En '],'background',['Achtergrond'],'but',['* ','Maar '],'examples',['Voorbeelden'],'feature',['Functionaliteit'],'given',['* ','Gegeven ','Stel '],'name','Dutch','native','Nederlands','rule',['Rule'],'scenario',['Voorbeeld','Scenario'],'scenarioOutline',['Abstract Scenario'],'then',['* ','Dan '],'when',['* ','Als ','Wanneer ']},'no',{'and',['* ','Og '],'background',['Bakgrunn'],'but',['* ','Men '],'examples',['Eksempler'],'feature',['Egenskap'],'given',['* ','Gitt '],'name','Norwegian','native','norsk','rule',['Regel'],'scenario',['Eksempel','Scenario'],'scenarioOutline',['Scenariomal','Abstrakt Scenario'],'then',['* ','Så '],'when',['* ','Når ']},'pa',{'and',['* ','ਅਤੇ '],'background',['ਪਿਛੋਕੜ'],'but',['* ','ਪਰ '],'examples',['ਉਦਾਹਰਨਾਂ'],'feature',['ਖਾਸੀਅਤ','ਮੁਹਾਂਦਰਾ','ਨਕਸ਼ ਨੁਹਾਰ'],'given',['* ','ਜੇਕਰ ','ਜਿਵੇਂ ਕਿ '],'name','Panjabi','native','ਪੰਜਾਬੀ','rule',['Rule'],'scenario',['ਉਦਾਹਰਨ','ਪਟਕਥਾ'],'scenarioOutline',['ਪਟਕਥਾ ਢਾਂਚਾ','ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ'],'then',['* ','ਤਦ '],'when',['* ','ਜਦੋਂ ']},'pl',{'and',['* ','Oraz ','I '],'background',['Założenia'],'but',['* ','Ale '],'examples',['Przykłady'],'feature',['Właściwość','Funkcja','Aspekt','Potrzeba biznesowa'],'given',['* ','Zakładając ','Mając ','Zakładając, że '],'name','Polish','native','polski','rule',['Zasada','Reguła'],'scenario',['Przykład','Scenariusz'],'scenarioOutline',['Szablon scenariusza'],'then',['* ','Wtedy '],'when',['* ','Jeżeli ','Jeśli ','Gdy ','Kiedy ']},'pt',{'and',['* ','E '],'background',['Contexto','Cenário de Fundo','Cenario de Fundo','Fundo'],'but',['* ','Mas '],'examples',['Exemplos','Cenários','Cenarios'],'feature',['Funcionalidade','Característica','Caracteristica'],'given',['* ','Dado ','Dada ','Dados ','Dadas '],'name','Portuguese','native','português','rule',['Regra'],'scenario',['Exemplo','Cenário','Cenario'],'scenarioOutline',['Esquema do Cenário','Esquema do Cenario','Delineação do Cenário','Delineacao do Cenario'],'then',['* ','Então ','Entao '],'when',['* ','Quando ']},'ro',{'and',['* ','Si ','Și ','Şi '],'background',['Context'],'but',['* ','Dar '],'examples',['Exemple'],'feature',['Functionalitate','Funcționalitate','Funcţionalitate'],'given',['* ','Date fiind ','Dat fiind ','Dată fiind','Dati fiind ','Dați fiind ','Daţi fiind '],'name','Romanian','native','română','rule',['Rule'],'scenario',['Exemplu','Scenariu'],'scenarioOutline',['Structura scenariu','Structură scenariu'],'then',['* ','Atunci '],'when',['* ','Cand ','Când ']},'ru',{'and',['* ','И ','К тому же ','Также '],'background',['Предыстория','Контекст'],'but',['* ','Но ','А ','Иначе '],'examples',['Примеры'],'feature',['Функция','Функциональность','Функционал','Свойство','Фича'],'given',['* ','Допустим ','Дано ','Пусть '],'name','Russian','native','русский','rule',['Правило'],'scenario',['Пример','Сценарий'],'scenarioOutline',['Структура сценария','Шаблон сценария'],'then',['* ','То ','Затем ','Тогда '],'when',['* ','Когда ','Если ']},'sk',{'and',['* ','A ','A tiež ','A taktiež ','A zároveň '],'background',['Pozadie'],'but',['* ','Ale '],'examples',['Príklady'],'feature',['Požiadavka','Funkcia','Vlastnosť'],'given',['* ','Pokiaľ ','Za predpokladu '],'name','Slovak','native','Slovensky','rule',['Rule'],'scenario',['Príklad','Scenár'],'scenarioOutline',['Náčrt Scenáru','Náčrt Scenára','Osnova Scenára'],'then',['* ','Tak ','Potom '],'when',['* ','Keď ','Ak ']},'sl',{'and',['In ','Ter '],'background',['Kontekst','Osnova','Ozadje'],'but',['Toda ','Ampak ','Vendar '],'examples',['Primeri','Scenariji'],'feature',['Funkcionalnost','Funkcija','Možnosti','Moznosti','Lastnost','Značilnost'],'given',['Dano ','Podano ','Zaradi ','Privzeto '],'name','Slovenian','native','Slovenski','rule',['Rule'],'scenario',['Primer','Scenarij'],'scenarioOutline',['Struktura scenarija','Skica','Koncept','Oris scenarija','Osnutek'],'then',['Nato ','Potem ','Takrat '],'when',['Ko ','Ce ','Če ','Kadar ']},'sr-Cyrl',{'and',['* ','И '],'background',['Контекст','Основа','Позадина'],'but',['* ','Али '],'examples',['Примери','Сценарији'],'feature',['Функционалност','Могућност','Особина'],'given',['* ','За дато ','За дате ','За дати '],'name','Serbian','native','Српски','rule',['Правило'],'scenario',['Пример','Сценарио','Пример'],'scenarioOutline',['Структура сценарија','Скица','Концепт'],'then',['* ','Онда '],'when',['* ','Када ','Кад ']},'sr-Latn',{'and',['* ','I '],'background',['Kontekst','Osnova','Pozadina'],'but',['* ','Ali '],'examples',['Primeri','Scenariji'],'feature',['Funkcionalnost','Mogućnost','Mogucnost','Osobina'],'given',['* ','Za dato ','Za date ','Za dati '],'name','Serbian (Latin)','native','Srpski (Latinica)','rule',['Pravilo'],'scenario',['Scenario','Primer'],'scenarioOutline',['Struktura scenarija','Skica','Koncept'],'then',['* ','Onda '],'when',['* ','Kada ','Kad ']},'sv',{'and',['* ','Och '],'background',['Bakgrund'],'but',['* ','Men '],'examples',['Exempel'],'feature',['Egenskap'],'given',['* ','Givet '],'name','Swedish','native','Svenska','rule',['Regel'],'scenario',['Scenario'],'scenarioOutline',['Abstrakt Scenario','Scenariomall'],'then',['* ','Så '],'when',['* ','När ']},'ta',{'and',['* ','மேலும் ','மற்றும் '],'background',['பின்னணி'],'but',['* ','ஆனால் '],'examples',['எடுத்துக்காட்டுகள்','காட்சிகள்','நிலைமைகளில்'],'feature',['அம்சம்','வணிக தேவை','திறன்'],'given',['* ','கொடுக்கப்பட்ட '],'name','Tamil','native','தமிழ்','rule',['Rule'],'scenario',['உதாரணமாக','காட்சி'],'scenarioOutline',['காட்சி சுருக்கம்','காட்சி வார்ப்புரு'],'then',['* ','அப்பொழுது '],'when',['* ','எப்போது ']},'te',{'and',['* ','మరియు '],'background',['నేపథ్యం'],'but',['* ','కాని '],'examples',['ఉదాహరణలు'],'feature',['గుణము'],'given',['* ','చెప్పబడినది '],'name','Telugu','native','తెలుగు','rule',['Rule'],'scenario',['ఉదాహరణ','సన్నివేశం'],'scenarioOutline',['కథనం'],'then',['* ','అప్పుడు '],'when',['* ','ఈ పరిస్థితిలో ']},'th',{'and',['* ','และ '],'background',['แนวคิด'],'but',['* ','แต่ '],'examples',['ชุดของตัวอย่าง','ชุดของเหตุการณ์'],'feature',['โครงหลัก','ความต้องการทางธุรกิจ','ความสามารถ'],'given',['* ','กำหนดให้ '],'name','Thai','native','ไทย','rule',['Rule'],'scenario',['เหตุการณ์'],'scenarioOutline',['สรุปเหตุการณ์','โครงสร้างของเหตุการณ์'],'then',['* ','ดังนั้น '],'when',['* ','เมื่อ ']},'tlh',{'and',['* ','\'ej ','latlh '],'background',['mo\''],'but',['* ','\'ach ','\'a '],'examples',['ghantoH','lutmey'],'feature',['Qap','Qu\'meH \'ut','perbogh','poQbogh malja\'','laH'],'given',['* ','ghu\' noblu\' ','DaH ghu\' bejlu\' '],'name','Klingon','native','tlhIngan','rule',['Rule'],'scenario',['lut'],'scenarioOutline',['lut chovnatlh'],'then',['* ','vaj '],'when',['* ','qaSDI\' ']},'tr',{'and',['* ','Ve '],'background',['Geçmiş'],'but',['* ','Fakat ','Ama '],'examples',['Örnekler'],'feature',['Özellik'],'given',['* ','Diyelim ki '],'name','Turkish','native','Türkçe','rule',['Kural'],'scenario',['Örnek','Senaryo'],'scenarioOutline',['Senaryo taslağı'],'then',['* ','O zaman '],'when',['* ','Eğer ki ']},'tt',{'and',['* ','Һәм ','Вә '],'background',['Кереш'],'but',['* ','Ләкин ','Әмма '],'examples',['Үрнәкләр','Мисаллар'],'feature',['Мөмкинлек','Үзенчәлеклелек'],'given',['* ','Әйтик '],'name','Tatar','native','Татарча','rule',['Rule'],'scenario',['Сценарий'],'scenarioOutline',['Сценарийның төзелеше'],'then',['* ','Нәтиҗәдә '],'when',['* ','Әгәр ']},'uk',{'and',['* ','І ','А також ','Та '],'background',['Передумова'],'but',['* ','Але '],'examples',['Приклади'],'feature',['Функціонал'],'given',['* ','Припустимо ','Припустимо, що ','Нехай ','Дано '],'name','Ukrainian','native','Українська','rule',['Rule'],'scenario',['Приклад','Сценарій'],'scenarioOutline',['Структура сценарію'],'then',['* ','То ','Тоді '],'when',['* ','Якщо ','Коли ']},'ur',{'and',['* ','اور '],'background',['پس منظر'],'but',['* ','لیکن '],'examples',['مثالیں'],'feature',['صلاحیت','کاروبار کی ضرورت','خصوصیت'],'given',['* ','اگر ','بالفرض ','فرض کیا '],'name','Urdu','native','اردو','rule',['Rule'],'scenario',['منظرنامہ'],'scenarioOutline',['منظر نامے کا خاکہ'],'then',['* ','پھر ','تب '],'when',['* ','جب ']},'uz',{'and',['* ','Ва '],'background',['Тарих'],'but',['* ','Лекин ','Бирок ','Аммо '],'examples',['Мисоллар'],'feature',['Функционал'],'given',['* ','Belgilangan '],'name','Uzbek','native','Узбекча','rule',['Rule'],'scenario',['Сценарий'],'scenarioOutline',['Сценарий структураси'],'then',['* ','Унда '],'when',['* ','Агар ']},'vi',{'and',['* ','Và '],'background',['Bối cảnh'],'but',['* ','Nhưng '],'examples',['Dữ liệu'],'feature',['Tính năng'],'given',['* ','Biết ','Cho '],'name','Vietnamese','native','Tiếng Việt','rule',['Rule'],'scenario',['Tình huống','Kịch bản'],'scenarioOutline',['Khung tình huống','Khung kịch bản'],'then',['* ','Thì '],'when',['* ','Khi ']},'zh-CN',{'and',['* ','而且','并且','同时'],'background',['背景'],'but',['* ','但是'],'examples',['例子'],'feature',['功能'],'given',['* ','假如','假设','假定'],'name','Chinese simplified','native','简体中文','rule',['Rule','规则'],'scenario',['场景','剧本'],'scenarioOutline',['场景大纲','剧本大纲'],'then',['* ','那么'],'when',['* ','当']},'zh-TW',{'and',['* ','而且','並且','同時'],'background',['背景'],'but',['* ','但是'],'examples',['例子'],'feature',['功能'],'given',['* ','假如','假設','假定'],'name','Chinese traditional','native','繁體中文','rule',['Rule'],'scenario',['場景','劇本'],'scenarioOutline',['場景大綱','劇本大綱'],'then',['* ','那麼'],'when',['* ','當']}}; -1; From 63a22b5d4d54cb80d102cdea4c0dd199e3ddf50e Mon Sep 17 00:00:00 2001 From: Erik Huelsmann Date: Sat, 14 Oct 2023 00:05:24 +0200 Subject: [PATCH 2/4] Use 'dzil build' to build a complete Gherkin-{VERSION} lib directory --- perl/Makefile | 14 ++++++-------- perl/cpanfile | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/perl/Makefile b/perl/Makefile index e5a7838b6..a1a3ef547 100644 --- a/perl/Makefile +++ b/perl/Makefile @@ -17,7 +17,7 @@ SOURCES = $(patsubst ../testdata/%,acceptance/testdata/%.source.ndjson,$(GO ERRORS = $(patsubst ../testdata/%,acceptance/testdata/%.errors.ndjson,$(BAD_FEATURE_FILES)) .DEFAULT_GOAL = help -PERL5LIB = $$PWD/perl5/lib/perl5 +PERL5LIB = $$PWD/perl5/lib/perl5:Gherkin-$(shell cat VERSION)/lib GHERKIN = PERL5LIB=${PERL5LIB} bin/gherkin GHERKIN_GENERATE_TOKENS = PERL5LIB=${PERL5LIB} bin/gherkin-generate-tokens @@ -37,22 +37,20 @@ clean-gherkin-languages: ## Remove gherkin-languages.json and any derived files echo "TODO: Depends on perl, this task should only depend on jq" clean: ## Remove all build artifacts and files generated by the acceptance tests - rm -f .built + PERL5LIB=${PERL5LIB} dzil clean rm -rf acceptance rm -rf perl5 .DELETE_ON_ERROR: -acceptance: .built lib/Gherkin/Generated/Languages.pm $(TOKENS) $(ASTS) $(PICKLES) $(SOURCES) $(ERRORS) ## Build acceptance test dir and compare results with reference +acceptance: Gherkin-$(shell cat VERSION) $(TOKENS) $(ASTS) $(PICKLES) $(SOURCES) $(ERRORS) ## Build acceptance test dir and compare results with reference -.built: perl5 $(SOURCE_FILES) - touch $@ +Gherkin-$(shell cat VERSION): perl5 $(SOURCE_FILES) + PERL5LIB=${PERL5LIB} dzil build perl5: cpanm --notest --local-lib ./perl5 --installdeps --with-develop . - -lib/Gherkin/Generated/Languages.pm: - perl helper-scripts/build_languages.pl > $@ + PERL5LIB=${PERL5LIB} dzil authordeps --missing | cpanm --notest --local-lib ./perl5 $(GHERKIN_PARSER): $(GHERKIN_RAZOR) ../gherkin.berp berp -g ../gherkin.berp -t $< -o $@ --noBOM diff --git a/perl/cpanfile b/perl/cpanfile index 23731e1ea..a2190fe41 100644 --- a/perl/cpanfile +++ b/perl/cpanfile @@ -15,5 +15,5 @@ on 'test' => sub { }; on 'develop' => sub { - # there are no specific development dependencies... + requires "Dist::Zilla"; }; From 48d8e268851f828f3222955adcaa520feface7e5 Mon Sep 17 00:00:00 2001 From: Erik Huelsmann Date: Sat, 14 Oct 2023 00:19:23 +0200 Subject: [PATCH 3/4] Use the generated languages file in the source tree --- perl/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/perl/Makefile b/perl/Makefile index a1a3ef547..a134dbd61 100644 --- a/perl/Makefile +++ b/perl/Makefile @@ -2,7 +2,7 @@ SHELL := /usr/bin/env bash GHERKIN_PARSER = lib/Gherkin/Generated/Parser.pm GHERKIN_RAZOR = gherkin-perl.razor -SOURCE_FILES = $(shell find . -name "*.pm" | grep -v $(GHERKIN_PARSER)) +SOURCE_FILES = $(shell find . -name "*.pm" | grep -v $(GHERKIN_PARSER) | grep -v Generated/Languages.pm ) GHERKIN = bin/gherkin GHERKIN_GENERATE_TOKENS = bin/gherkin-generate-tokens @@ -17,7 +17,7 @@ SOURCES = $(patsubst ../testdata/%,acceptance/testdata/%.source.ndjson,$(GO ERRORS = $(patsubst ../testdata/%,acceptance/testdata/%.errors.ndjson,$(BAD_FEATURE_FILES)) .DEFAULT_GOAL = help -PERL5LIB = $$PWD/perl5/lib/perl5:Gherkin-$(shell cat VERSION)/lib +PERL5LIB = $$PWD/perl5/lib/perl5 GHERKIN = PERL5LIB=${PERL5LIB} bin/gherkin GHERKIN_GENERATE_TOKENS = PERL5LIB=${PERL5LIB} bin/gherkin-generate-tokens @@ -38,14 +38,18 @@ clean-gherkin-languages: ## Remove gherkin-languages.json and any derived files clean: ## Remove all build artifacts and files generated by the acceptance tests PERL5LIB=${PERL5LIB} dzil clean + rm -rf lib/Gherkin/Generated/Languages.pm rm -rf acceptance rm -rf perl5 .DELETE_ON_ERROR: -acceptance: Gherkin-$(shell cat VERSION) $(TOKENS) $(ASTS) $(PICKLES) $(SOURCES) $(ERRORS) ## Build acceptance test dir and compare results with reference +acceptance: lib/Gherkin/Generated/Languages.pm $(TOKENS) $(ASTS) $(PICKLES) $(SOURCES) $(ERRORS) ## Build acceptance test dir and compare results with reference -Gherkin-$(shell cat VERSION): perl5 $(SOURCE_FILES) +lib/Gherkin/Generated/Languages.pm: perl5 $(SOURCE_FILES) + # this generates an output file in the source tree (ugh!) + # it enables us to run the tests using 'lib/' in the path, + # which is less complicated than trying to use Gherkin- PERL5LIB=${PERL5LIB} dzil build perl5: From 730a3e1d1543ac1e6876e18add8592c262e495af Mon Sep 17 00:00:00 2001 From: Erik Huelsmann Date: Sat, 14 Oct 2023 00:23:16 +0200 Subject: [PATCH 4/4] Make 'dzil' discoverable --- perl/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/perl/Makefile b/perl/Makefile index a134dbd61..133e83ae1 100644 --- a/perl/Makefile +++ b/perl/Makefile @@ -37,7 +37,7 @@ clean-gherkin-languages: ## Remove gherkin-languages.json and any derived files echo "TODO: Depends on perl, this task should only depend on jq" clean: ## Remove all build artifacts and files generated by the acceptance tests - PERL5LIB=${PERL5LIB} dzil clean + PATH=$$PATH:perl5/bin PERL5LIB=${PERL5LIB} dzil clean rm -rf lib/Gherkin/Generated/Languages.pm rm -rf acceptance rm -rf perl5 @@ -50,11 +50,11 @@ lib/Gherkin/Generated/Languages.pm: perl5 $(SOURCE_FILES) # this generates an output file in the source tree (ugh!) # it enables us to run the tests using 'lib/' in the path, # which is less complicated than trying to use Gherkin- - PERL5LIB=${PERL5LIB} dzil build + PATH=$$PATH:perl5/bin PERL5LIB=${PERL5LIB} dzil build perl5: cpanm --notest --local-lib ./perl5 --installdeps --with-develop . - PERL5LIB=${PERL5LIB} dzil authordeps --missing | cpanm --notest --local-lib ./perl5 + PATH=$$PATH:perl5/bin PERL5LIB=${PERL5LIB} dzil authordeps --missing | cpanm --notest --local-lib ./perl5 $(GHERKIN_PARSER): $(GHERKIN_RAZOR) ../gherkin.berp berp -g ../gherkin.berp -t $< -o $@ --noBOM