mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-11-14 07:41:12 +01:00
Makefile: use "git archive" for generating release file
This commit is contained in:
parent
9748ebdcfb
commit
a3fde3c704
1 changed files with 4 additions and 9 deletions
13
Makefile
13
Makefile
|
@ -58,12 +58,7 @@ clean-all: clean-node clean-tgz
|
|||
tgz: $(TGZ_FILE)
|
||||
|
||||
$(TGZ_FILE):
|
||||
@VERSION="$(VERSION)"; \
|
||||
echo "Building "$(DIST_DIR)"/muninlite-$$VERSION.tar.gz"; \
|
||||
mkdir -p "$(DIST_DIR)"; \
|
||||
cp -ra . "$(DIST_DIR)"/muninlite-$$VERSION 2>/dev/null || true; \
|
||||
cd "$(DIST_DIR)"; \
|
||||
rm -rf muninlite-$$VERSION/"$(DIST_DIR)"; \
|
||||
rm -rf muninlite-$$VERSION/.svn; \
|
||||
tar zcvf muninlite-$$VERSION.tar.gz muninlite-$$VERSION >/dev/null; \
|
||||
rm -rf muninlite-$$VERSION;
|
||||
@echo "Building $@ ..."
|
||||
@mkdir -p "$(dir $(@))"
|
||||
git archive --prefix=muninlite-$(VERSION)/ --format=tar --output "$@.tmp" HEAD
|
||||
mv "$@.tmp" "$@"
|
||||
|
|
Loading…
Reference in a new issue