1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-27 13:44:32 +03:00

Remove leading v in archive names when generating releases

This commit is contained in:
Maxime Coste 2018-09-04 08:19:11 +10:00
parent 37e2558413
commit b8dbe6135c

View File

@ -119,11 +119,12 @@ dist:
@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
cd ../; \
git archive --format=tar --prefix=kakoune-$(version)/ HEAD -o kakoune-$(version).tar; \
basename="kakoune-$$(echo "$(version)" | sed -e s/^v//)"; \
git archive --format=tar --prefix=$${basename}/ HEAD -o $${basename}.tar; \
echo "$(version)" > src/.version; \
tar --transform "s,^,kakoune-$(version)/," -rf kakoune-$(version).tar src/.version; \
tar --transform "s,^,$${basename}/," -rf $${basename}.tar src/.version; \
rm src/.version; \
bzip2 kakoune-$(version).tar;
bzip2 $${basename}.tar;
distclean: clean
rm -f kak kak$(suffix)