Remove leading v in archive names when generating releases
This commit is contained in:
parent
37e2558413
commit
b8dbe6135c
13
src/Makefile
13
src/Makefile
|
@ -118,12 +118,13 @@ clean:
|
||||||
dist:
|
dist:
|
||||||
@if ! [ -d ../.git ]; then echo "make dist can only run from a git repo"; false; fi
|
@if ! [ -d ../.git ]; then echo "make dist can only run from a git repo"; false; fi
|
||||||
@if git status -s | grep -qEv '^\?\?'; then echo "working tree is not clean"; false; fi
|
@if git status -s | grep -qEv '^\?\?'; then echo "working tree is not clean"; false; fi
|
||||||
cd ../; \
|
cd ../; \
|
||||||
git archive --format=tar --prefix=kakoune-$(version)/ HEAD -o kakoune-$(version).tar; \
|
basename="kakoune-$$(echo "$(version)" | sed -e s/^v//)"; \
|
||||||
echo "$(version)" > src/.version; \
|
git archive --format=tar --prefix=$${basename}/ HEAD -o $${basename}.tar; \
|
||||||
tar --transform "s,^,kakoune-$(version)/," -rf kakoune-$(version).tar src/.version; \
|
echo "$(version)" > src/.version; \
|
||||||
rm src/.version; \
|
tar --transform "s,^,$${basename}/," -rf $${basename}.tar src/.version; \
|
||||||
bzip2 kakoune-$(version).tar;
|
rm src/.version; \
|
||||||
|
bzip2 $${basename}.tar;
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -f kak kak$(suffix)
|
rm -f kak kak$(suffix)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user