build: Put .cockpit-ci into source tarballs

So that test/browser/browser.sh can find it when it runs from a source
tarball during Fedora package gating.
This commit is contained in:
Marius Vollmer 2024-03-27 15:15:43 +02:00 committed by Martin Pitt
parent 3bc2cba650
commit 0a0fb25276
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ CLEANFILES += cockpit-*.tar.xz
EXTRA_DIST += $(EXTRA_FILES)
distdir: $(DISTFILES)
@if [ -e '$(srcdir)/.git' ]; then \
git -C '$(srcdir)' ls-files -x test/reference .fmf plans pkg test tools > .extra_dist.tmp && \
git -C '$(srcdir)' ls-files -x test/reference .fmf .cockpit-ci plans pkg test tools > .extra_dist.tmp && \
mv .extra_dist.tmp '$(srcdir)/.extra_dist'; fi
$(MAKE) $(AM_MAKEFLAGS) distdir-am EXTRA_FILES="$$(tr '\n' ' ' < $(srcdir)/.extra_dist) .extra_dist"
sed -i "s/[@]VERSION@/$(VERSION)/" "$(distdir)/src/client/org.cockpit_project.CockpitClient.metainfo.xml"