travis: snapshot git version before creating dist tarball

fixes #2334
next
Michael Stapelberg 2016-05-02 08:49:16 +02:00
parent 3b089d0771
commit d242ae1745
2 changed files with 5 additions and 0 deletions

View File

@ -32,6 +32,10 @@ real-all: $(ALL_TARGETS)
install: $(INSTALL_TARGETS)
store_git_version:
echo -n ${I3_VERSION} > I3_VERSION
echo -n ${VERSION} > VERSION
dist: distclean
[ ! -d i3-${VERSION} ] || rm -rf i3-${VERSION}
[ ! -e i3-${VERSION}.tar.bz2 ] || rm i3-${VERSION}.tar.bz2

View File

@ -5,6 +5,7 @@ set -x
DEST=$1
make store_git_version
make dist
# unpack dist tarball
mkdir -p "${DEST}"