From d242ae17454cb49f693227436e40703753d5749a Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 2 May 2016 08:49:16 +0200 Subject: [PATCH 1/1] travis: snapshot git version before creating dist tarball fixes #2334 --- Makefile | 4 ++++ travis/debian-build.sh | 1 + 2 files changed, 5 insertions(+) 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}" -- 2.39.2