travis: snapshot git version before creating dist tarball

fixes #2334
This commit is contained in:
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) install: $(INSTALL_TARGETS)
store_git_version:
echo -n ${I3_VERSION} > I3_VERSION
echo -n ${VERSION} > VERSION
dist: distclean dist: distclean
[ ! -d i3-${VERSION} ] || rm -rf i3-${VERSION} [ ! -d i3-${VERSION} ] || rm -rf i3-${VERSION}
[ ! -e i3-${VERSION}.tar.bz2 ] || rm i3-${VERSION}.tar.bz2 [ ! -e i3-${VERSION}.tar.bz2 ] || rm i3-${VERSION}.tar.bz2

View File

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