PageRenderTime 16ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/tools/maint/Makefile.am

#
Makefile | 75 lines | 45 code | 8 blank | 22 comment | 10 complexity | b4672d9d4a85bb84a61c9db4ed018a22 MD5 | raw file
 1##
 2## Input file for automake
 3##
 4## Copyright (C) 2008, 2009 Francesco Salvestrini
 5##
 6## This program is free software; you can redistribute it and/or modify
 7## it under the terms of the GNU General Public License as published by
 8## the Free Software Foundation; either version 2 of the License, or
 9## (at your option) any later version.
10##
11## This program is distributed in the hope that it will be useful,
12## but WITHOUT ANY WARRANTY; without even the implied warranty of
13## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
14## GNU General Public License for more details.
15##
16## You should have received a copy of the GNU General Public License along
17## with this program; if not, write to the Free Software Foundation, Inc.,
18## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19##
20
21include $(top_srcdir)/Makefile.sub
22
23EXTRA_DIST =					\
24	git-version-gen				\
25	gitlog-to-changelog			\
26	announce-gen
27
28scripts =					\
29	fetch					\
30	wordwrap-detect				\
31	whitespace-detect			\
32	gitlog-to-committers			\
33	gittag-to-date				\
34	releases-to-news			\
35	$(EXTRA_DIST)
36
37##
38## Maintainer related targets
39##
40URL_BU = "http://github.com/salvestrini/build-utils/raw/master/maint"
41
42EXTERNAL =					\
43        $(URL_BU)/fetch.in			\
44        $(URL_BU)/wordwrap-detect.in		\
45        $(URL_BU)/whitespace-detect.in		\
46        $(URL_BU)/gitlog-to-committers.in	\
47        $(URL_BU)/gittag-to-date.in		\
48        $(URL_BU)/releases-to-news.in
49
50update-local: Makefile
51	rm -r -f fetch-dir && \
52	mkdir fetch-dir && \
53	for i in $(EXTERNAL) ; do \
54	        URL="$$i" ; \
55	        NAME=`echo "$$i" | $(SED) -e 's,^.*/,,'` ; \
56	        $(FETCH) $$URL?raw=true fetch-dir/$$NAME && \
57	        mv fetch-dir/$$NAME $$NAME || { \
58	                rm -f fetch-dir/$$NAME ; \
59	                exit 1 ; \
60	        } \
61	done && \
62	rm -r -f fetch-dir
63
64maintainer-check-parameters: Makefile $(scripts)
65	for i in $(scripts) ; do \
66		echo @ECHO_N@ "Checking standard parameters for $$i... " ; \
67		if ( ./$$i -h 2>&1 > /dev/null ) ; then \
68			echo "@ECHO_T@ok" ; \
69		else \
70			echo "@ECHO_T@error" ; \
71			exit 1 ; \
72		fi ; \
73	done
74
75maintainer-check-local: Makefile maintainer-check-parameters