1 # Copyright (C) 2002 - 2006 John Goerzen
2 # <jgoerzen@complete.org>
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 TARGZ
=offlineimap_
$(VERSION
).
tar.gz
23 -python setup.py
clean --all
24 -rm -f
`find . -name "*~"`
25 -rm -f
`find . -name "*.tmp"`
26 -rm -f bin
/offlineimapc
27 -rm -f
`find . -name "*.pyc"`
28 -rm -f
`find . -name "*.pygc"`
29 -rm -f
`find . -name "*.class"`
30 -rm -f
`find . -name "*.bak"`
31 -rm -f
`find . -name ".cache*"`
32 -rm -f manpage.links manpage.refs
33 -find .
-name auth
-exec
rm -vf
{}/password
{}/username \
;
34 -rm -f manual.html manual.pdf manual.txt offlineimap
.1
37 docbook2man offlineimap.sgml
38 docbook2man offlineimap.sgml
39 docbook2html
-u offlineimap.sgml
40 mv offlineimap.html manual.html
41 man
-t
-l offlineimap
.1 > manual.ps
43 groff
-Tascii
-man offlineimap
.1 | sed
$$'s/.\b//g' > manual.txt
44 -rm manpage.links manpage.refs manual.ps
47 curl
-o FAQ.html http
://software.complete.org
/offlineimap
/wiki
/FrequentlyAskedQuestions
51 if
! pwd | grep
-q
"/offlineimap-$(VERSION)$$"; then \
52 echo
"Containing directory must be called offlineimap-$(VERSION)"; \
55 pwd
&& cd ..
&& pwd
&& tar -zhcv
--exclude
'.git' -f
$(TARGZ
) offlineimap-
$(VERSION
)
58 cd ..
&& sudo rpmbuild
-ta
$(TARGZ
)