diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2012-05-02 14:26:36 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2012-05-02 14:26:36 +0200 |
commit | 5f79bace21f54b7a480b48dd6a6ad1d1bfa81414 (patch) | |
tree | b24f0f230aa800706a3e90228a497ae86cf39be8 | |
parent | de5efc6a546dea02ea1625e869461cb0b96a9350 (diff) | |
download | cwm-5f79bace21f54b7a480b48dd6a6ad1d1bfa81414.tar.gz cwm-5f79bace21f54b7a480b48dd6a6ad1d1bfa81414.tar.xz cwm-5f79bace21f54b7a480b48dd6a6ad1d1bfa81414.zip |
Add release target to Makefile
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile index bd9d44d..3aeae02 100644 --- a/Makefile +++ b/Makefile @@ -41,3 +41,7 @@ install: ${PROG} install -m 755 cwm ${DESTDIR}${PREFIX}/bin install -m 644 cwm.1 ${DESTDIR}${MANPREFIX}/man1 install -m 644 cwmrc.5 ${DESTDIR}${MANPREFIX}/man5 + +release: + VERSION=$$(git describe --tags | sed 's/^v//;s/-[^.]*$$//') && \ + git archive --prefix=cwm-$$VERSION/ -o cwm-$$VERSION.tar.gz HEAD |