]> code.delx.au - offlineimap/blobdiff - Makefile
Update FSF address
[offlineimap] / Makefile
index 4ac5f4010f7bf0ab7595090a239ca8ea2c27f0a4..12dd8c9ff9c2dd0469eeb2d8497a3a1ce7304b93 100644 (file)
--- a/Makefile
+++ b/Makefile
 #
 #    You should have received a copy of the GNU General Public License
 #    along with this program; if not, write to the Free Software
-#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+VERSION=4.0.13
+TARGZ=offlineimap_$(VERSION).tar.gz
 SHELL=/bin/bash
 
 clean:
@@ -29,10 +32,6 @@ clean:
        -rm manpage.links
        -rm manpage.refs
        -find . -name auth -exec rm -vf {}/password {}/username \;
-       -svn cleanup
-
-changelog:
-       svn log -v --stop-on-copy > ChangeLog
 
 doc:
        docbook2man offlineimap.sgml
@@ -44,3 +43,13 @@ doc:
        groff -Tascii -man offlineimap.1 | sed $$'s/.\b//g' > manual.txt
        -rm manpage.links manpage.refs
 
+targz: ../$(TARGZ)
+../$(TARGZ):
+       if ! pwd | grep -q "/offlineimap-$(VERSION)$$"; then                    \
+         echo "Containing directory must be called offlineimap-$(VERSION)";    \
+         exit 1;                                                               \
+       fi;                                                                     \
+       pwd && cd .. && pwd && tar -zhcv --exclude '_darcs' -f $(TARGZ) offlineimap-$(VERSION)
+
+rpm: targz
+       cd .. && sudo rpmbuild -ta $(TARGZ)