Properly handle writing $(config) files to dist
The `cp` operation was copying files to the root of dist, rather than to the proper relative location. Including them in the dist file mainfest lets tar handle this properly. Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
6
Makefile
6
Makefile
@@ -166,9 +166,9 @@ init:
|
|||||||
dist: $(config)
|
dist: $(config)
|
||||||
rm -rf .dist/
|
rm -rf .dist/
|
||||||
mkdir -p .dist/$(WAREWULF)-$(VERSION)
|
mkdir -p .dist/$(WAREWULF)-$(VERSION)
|
||||||
git ls-files >.dist/git-ls-files
|
(git ls-files; printf "%s\n" $(config)) >.dist/dist-files
|
||||||
tar -c --files-from .dist/git-ls-files | tar -C .dist/$(WAREWULF)-$(VERSION) -x
|
tar -c --files-from .dist/dist-files | tar -C .dist/$(WAREWULF)-$(VERSION) -x
|
||||||
cp -a vendor/ $(config) .dist/$(WAREWULF)-$(VERSION)
|
test -d vendor/ && cp -a vendor/ .dist/$(WAREWULF)-$(VERSION) || :
|
||||||
scripts/get-version.sh >.dist/$(WAREWULF)-$(VERSION)/VERSION
|
scripts/get-version.sh >.dist/$(WAREWULF)-$(VERSION)/VERSION
|
||||||
tar -C .dist -czf $(WAREWULF)-$(VERSION).tar.gz $(WAREWULF)-$(VERSION)
|
tar -C .dist -czf $(WAREWULF)-$(VERSION).tar.gz $(WAREWULF)-$(VERSION)
|
||||||
rm -rf .dist/
|
rm -rf .dist/
|
||||||
|
|||||||
Reference in New Issue
Block a user