]> git.sur5r.net Git - i3/i3/commitdiff
travis: snapshot git version before creating dist tarball
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 2 May 2016 06:49:16 +0000 (08:49 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 2 May 2016 06:49:16 +0000 (08:49 +0200)
fixes #2334

Makefile
travis/debian-build.sh

index 57513b0e36c2418879c004cb220e623d381949de..d62db5d0166a0170e7d40612ea89d573440ad29a 100644 (file)
--- 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
index 3fa4abadc5422ed0ed91f068a1e4fa099e6e88bb..dafa5d7dc977bd34671958c15694f5e9294307f6 100755 (executable)
@@ -5,6 +5,7 @@ set -x
 
 DEST=$1
 
+make store_git_version
 make dist
 # unpack dist tarball
 mkdir -p "${DEST}"