Prevent make dist from including previous dists
`make dist` may accidentially include previously-made dist tarballs; this change adjusts the target to exclude these tarballs from the dist. Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
2
Makefile
2
Makefile
@@ -160,7 +160,7 @@ init:
|
||||
dist:
|
||||
rm -rf .dist/ $(WAREWULF)-$(VERSION).tar.gz
|
||||
mkdir -p .dist/$(WAREWULF)-$(VERSION)
|
||||
rsync -a --exclude=".github" --exclude=".vscode" --exclude "*~" * .dist/$(WAREWULF)-$(VERSION)/
|
||||
rsync -a --exclude=".github" --exclude=".vscode" --exclude "*~" --exclude $(WAREWULF)-*.tar.gz * .dist/$(WAREWULF)-$(VERSION)/
|
||||
scripts/get-version.sh >.dist/$(WAREWULF)-$(VERSION)/VERSION
|
||||
cd .dist; tar -czf ../$(WAREWULF)-$(VERSION).tar.gz $(WAREWULF)-$(VERSION)
|
||||
rm -rf .dist
|
||||
|
||||
Reference in New Issue
Block a user