From: Michael Stapelberg Date: Mon, 2 May 2016 06:49:16 +0000 (+0200) Subject: travis: snapshot git version before creating dist tarball X-Git-Tag: 4.13~84 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d242ae17454cb49f693227436e40703753d5749a;p=i3%2Fi3 travis: snapshot git version before creating dist tarball fixes #2334 --- diff --git a/Makefile b/Makefile index 57513b0e..d62db5d0 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/travis/debian-build.sh b/travis/debian-build.sh index 3fa4abad..dafa5d7d 100755 --- a/travis/debian-build.sh +++ b/travis/debian-build.sh @@ -5,6 +5,7 @@ set -x DEST=$1 +make store_git_version make dist # unpack dist tarball mkdir -p "${DEST}"