Commit graph

5 commits

Author SHA1 Message Date
Arne Welzel
42c1fc3e7d ci/collect-repo-info: Make plugin VERSION reading more robust
The zeek-kafak plugin's VERSION file contains a commented license
header followed by an empty line, followed by the actual version.

Attempt to deal with this by using the first non-commented non-empty
line.
2023-03-08 20:57:26 +01:00
Arne Welzel
cc6e012f36 ci/collect-repo-info: No hard dependency on git, take two
Collecting information about builtin external plugins also
tried to use `git` unconditionally.
2023-02-23 14:21:36 +01:00
Arne Welzel
f3253554d1 ci/collect-repo-info: No hard dependency on git
The OBS builds run in an environment where no git is installed and
release tarballs assembled manually.

Drop the hard-requirement on git from ci/collect-repo-info.json.
2023-02-22 18:12:32 +01:00
Arne Welzel
b9218b2ec7 ci/collect-repo-info.py: Recognize git worktrees, too
Benjamin reported ci/collect-repo-info.py failing for him in
Git worktrees, use `git` to actually check if we're in a repo.
2023-02-14 10:06:09 +01:00
Arne Welzel
3284259561 Add zeek -V/--build-info
This adds a new utility called ci/collect-repo-info.py to produce a JSON
document that is then baked into the Zeek executable file. Further, when
creating a tarball via `make dist`, put a top-level repo-info.json file
in place that is picked when no .git directory exists.

Closes #1405
2023-02-13 12:23:29 +01:00