Skip to content

Commit

Permalink
Don't maintain a generated Languages.pm file
Browse files Browse the repository at this point in the history
Fixes #32
  • Loading branch information
ehuelsmann committed Sep 24, 2023
1 parent 3be6b55 commit 18b5c00
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions perl/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ perl5/
.cpanfile_dependencies
cpanfile.snapshot
CHANGELOG.md
lib/Gherkin/Generated/Languages.pm
2 changes: 1 addition & 1 deletion perl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@
Expand Down
8 changes: 7 additions & 1 deletion perl/dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 0 additions & 7 deletions perl/lib/Gherkin/Generated/Languages.pm

This file was deleted.

0 comments on commit 18b5c00

Please sign in to comment.