2010-03-10 15:16:19 +00:00
|
|
|
# $Id: dist.mk,v 1.8 2010-03-10 15:16:19 tcunha Exp $
|
2009-05-14 07:51:25 +00:00
|
|
|
|
2010-03-10 15:16:19 +00:00
|
|
|
VERSION= 1.2
|
2009-05-14 07:48:42 +00:00
|
|
|
|
|
|
|
DISTDIR= tmux-${VERSION}
|
|
|
|
DISTFILES= *.[ch] Makefile GNUmakefile configure tmux.1 \
|
|
|
|
NOTES TODO CHANGES FAQ \
|
|
|
|
`find examples compat -type f -and ! -path '*CVS*'`
|
|
|
|
|
|
|
|
dist:
|
2009-05-16 21:56:38 +00:00
|
|
|
(./configure && make clean-all)
|
2009-05-14 07:48:42 +00:00
|
|
|
grep '^#FDEBUG=' Makefile
|
|
|
|
grep '^#FDEBUG=' GNUmakefile
|
|
|
|
[ "`(grep '^VERSION' Makefile; grep '^VERSION' GNUmakefile)| \
|
|
|
|
uniq -u`" = "" ]
|
2009-05-18 15:42:30 +00:00
|
|
|
chmod +x configure
|
2009-05-14 07:48:42 +00:00
|
|
|
tar -zc \
|
|
|
|
-s '/.*/${DISTDIR}\/\0/' \
|
|
|
|
-f ${DISTDIR}.tar.gz ${DISTFILES}
|
|
|
|
|
|
|
|
upload-index.html: update-index.html
|
2009-10-25 08:14:34 +00:00
|
|
|
scp www/index.html www/main.css www/images/*.png \
|
2009-05-14 07:48:42 +00:00
|
|
|
nicm,tmux@web.sf.net:/home/groups/t/tm/tmux/htdocs
|
2009-05-17 18:20:59 +00:00
|
|
|
rm -f www/index.html www/images/small-*
|
2009-05-14 07:48:42 +00:00
|
|
|
|
|
|
|
update-index.html:
|
2009-05-17 18:20:59 +00:00
|
|
|
(cd www/images && \
|
2009-05-14 07:48:42 +00:00
|
|
|
rm -f small-* && \
|
|
|
|
for i in *.png; do \
|
|
|
|
convert "$$i" -resize 200x150 "small-$$i"; \
|
|
|
|
done \
|
|
|
|
)
|
2009-05-17 18:20:59 +00:00
|
|
|
sed "s/%%VERSION%%/${VERSION}/g" www/index.html.in >www/index.html
|