]> thyrsus.com Git - freecode-submit.git/commitdiff
Yes, the Makefuile needs to be registered too.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 13 Oct 2010 07:09:02 +0000 (03:09 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 13 Oct 2010 07:09:02 +0000 (03:09 -0400)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..9ab6983
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,35 @@
+# Makefile for the freshmeat-submit tool
+
+VERS=$(shell sed <freshmeat-submit.spec -n -e '/Version: \(.*\)/s//\1/p')
+
+CODE    = freshmeat-submit
+DOCS    = README AUTHORS freshmeat-submit.xml COPYING
+SOURCES = $(CODE) $(DOCS) freshmeat-submit.spec Makefile
+
+all: freshmeat-submit.1
+
+freshmeat-submit.1: freshmeat-submit.xml
+       xmlto man freshmeat-submit.xml
+
+freshmeat-submit.html: freshmeat-submit.xml
+       xmlto html-nochunks freshmeat-submit.xml
+
+install: freshmeat-submit.1 uninstall
+       cp freshmeat-submit ${ROOT}/usr/bin/freshmeat-submit 
+       install -m 755 -o 0 -g 0 -d $(ROOT)/usr/share/man/man1/
+       install -m 755 -o 0 -g 0 freshmeat-submit.1 $(ROOT)/usr/share/man/man1/freshmeat-submit.1
+
+uninstall:
+       rm -f ${ROOT}/usr/bin/freshmeat-submit 
+       rm -f ${ROOT}/usr/share/man/man1/freshmeat-submit.1
+
+freshmeat-submit-$(VERS).tar.gz: $(SOURCES) freshmeat-submit.1
+       find $(SOURCES) freshmeat-submit.1 -type f | sed "s:^:freshmeat-submit-$(VERS)/:" >MANIFEST
+       (cd ..; ln -s freshmeat-submit freshmeat-submit-$(VERS))
+       (cd ..; tar -czvf freshmeat-submit/freshmeat-submit-$(VERS).tar.gz `cat freshmeat-submit/MANIFEST`)
+       (cd ..; rm freshmeat-submit-$(VERS))
+
+dist: freshmeat-submit-$(VERS).tar.gz
+
+release: freshmeat-submit-$(VERS).tar.gz freshmeat-submit.html
+       shipper -f; rm -f CHANGES ANNOUNCE* *.6 *.html *.rpm *.lsm MANIFEST