diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-05-17 18:15:41 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-05-17 18:15:41 +0000 |
commit | 680521778310ed3c0c4c1254cc7aca9133374ecd (patch) | |
tree | 94bc62685aca3011e20b4b47975f278edfc77e1e /tools | |
parent | 0f5168f971051c9b1cb60b1a1622a5c0afdaee29 (diff) |
Move dist.mk to tools/.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dist.mk | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/dist.mk b/tools/dist.mk new file mode 100644 index 00000000..daaec1ee --- /dev/null +++ b/tools/dist.mk @@ -0,0 +1,32 @@ +# $Id: dist.mk,v 1.1 2009-05-17 18:15:41 nicm Exp $ + +VERSION= 0.8 + +DISTDIR= tmux-${VERSION} +DISTFILES= *.[ch] Makefile GNUmakefile configure tmux.1 \ + NOTES TODO CHANGES FAQ \ + `find examples compat -type f -and ! -path '*CVS*'` + +dist: + (./configure && make clean-all) + grep '^#FDEBUG=' Makefile + grep '^#FDEBUG=' GNUmakefile + [ "`(grep '^VERSION' Makefile; grep '^VERSION' GNUmakefile)| \ + uniq -u`" = "" ] + tar -zc \ + -s '/.*/${DISTDIR}\/\0/' \ + -f ${DISTDIR}.tar.gz ${DISTFILES} + +upload-index.html: update-index.html + scp index.html images/*.png \ + nicm,tmux@web.sf.net:/home/groups/t/tm/tmux/htdocs + rm -f images/small-* + +update-index.html: + (cd images && \ + rm -f small-* && \ + for i in *.png; do \ + convert "$$i" -resize 200x150 "small-$$i"; \ + done \ + ) + sed "s/%%VERSION%%/${VERSION}/g" index.html.in >index.html |