mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00
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
This commit is contained in:
parent
2b33645f06
commit
3284259561
9 changed files with 224 additions and 1 deletions
1
Makefile
1
Makefile
|
@ -44,6 +44,7 @@ dist:
|
|||
@(cd ../$(VERSION_FULL) && find . -name \.git\* | xargs rm -rf)
|
||||
@(cd ../$(VERSION_FULL) && find . -name \.idea -type d | xargs rm -rf)
|
||||
@(cd ../$(VERSION_FULL) && find . -maxdepth 1 -name build\* | xargs rm -rf)
|
||||
@python3 ./ci/collect-repo-info.py --only-git > ../$(VERSION_FULL)/repo-info.json
|
||||
@mv ../$(VERSION_FULL) .
|
||||
@COPYFILE_DISABLE=true tar -czf $(VERSION_FULL).tar.gz $(VERSION_FULL)
|
||||
@echo Package: $(VERSION_FULL).tar.gz
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue