PageRenderTime 47ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/tools/maint/Makefile.am

#
Makefile | 75 lines | 45 code | 8 blank | 22 comment | 10 complexity | b4672d9d4a85bb84a61c9db4ed018a22 MD5 | raw file
Possible License(s): GPL-2.0
  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. include $(top_srcdir)/Makefile.sub
  21. EXTRA_DIST = \
  22. git-version-gen \
  23. gitlog-to-changelog \
  24. announce-gen
  25. scripts = \
  26. fetch \
  27. wordwrap-detect \
  28. whitespace-detect \
  29. gitlog-to-committers \
  30. gittag-to-date \
  31. releases-to-news \
  32. $(EXTRA_DIST)
  33. ##
  34. ## Maintainer related targets
  35. ##
  36. URL_BU = "http://github.com/salvestrini/build-utils/raw/master/maint"
  37. EXTERNAL = \
  38. $(URL_BU)/fetch.in \
  39. $(URL_BU)/wordwrap-detect.in \
  40. $(URL_BU)/whitespace-detect.in \
  41. $(URL_BU)/gitlog-to-committers.in \
  42. $(URL_BU)/gittag-to-date.in \
  43. $(URL_BU)/releases-to-news.in
  44. update-local: Makefile
  45. rm -r -f fetch-dir && \
  46. mkdir fetch-dir && \
  47. for i in $(EXTERNAL) ; do \
  48. URL="$$i" ; \
  49. NAME=`echo "$$i" | $(SED) -e 's,^.*/,,'` ; \
  50. $(FETCH) $$URL?raw=true fetch-dir/$$NAME && \
  51. mv fetch-dir/$$NAME $$NAME || { \
  52. rm -f fetch-dir/$$NAME ; \
  53. exit 1 ; \
  54. } \
  55. done && \
  56. rm -r -f fetch-dir
  57. maintainer-check-parameters: Makefile $(scripts)
  58. for i in $(scripts) ; do \
  59. echo @ECHO_N@ "Checking standard parameters for $$i... " ; \
  60. if ( ./$$i -h 2>&1 > /dev/null ) ; then \
  61. echo "@ECHO_T@ok" ; \
  62. else \
  63. echo "@ECHO_T@error" ; \
  64. exit 1 ; \
  65. fi ; \
  66. done
  67. maintainer-check-local: Makefile maintainer-check-parameters