0001-missing-add-autoreconf-autogen-and-perl-as-supported.patch 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. From facafe88df66933f84ddfecce119bb3c194df751 Mon Sep 17 00:00:00 2001
  2. GIT:
  3. GIT: This is my first patch. `https://www.gnu.org/software/automake/' mentions
  4. GIT: `The HACKING file present in the Automake git repository should explain
  5. GIT: how to properly prepare, format and post a patch.'. However,
  6. GIT: the HACKING file does not mention `git format-patch'. Should I add it?
  7. GIT:
  8. GIT: This patch add autoreconf, autogen and perl as supported programs to
  9. GIT: the `missing' script. This is already done to my local copy of
  10. GIT: the `missing' script. It is useful because I need to use
  11. GIT: the `missing' script as wrapper to invoke autoreconf, autogen and perl
  12. GIT: from the `bootstrap' script. Hopefully, this is useful to the others
  13. GIT: as well so I submit this patch.
  14. GIT:
  15. GIT: Feel free to discuss the above, accept/reject patch and reply to
  16. GIT: this email. This patch can be apply by `git am *.patch' (tested).
  17. GIT:
  18. From: Alex Vong <alexvong1995@gmail.com>
  19. Date: Sun, 26 Jul 2015 23:10:28 +0800
  20. Subject: [PATCH] missing: add autoreconf, autogen and perl as supported
  21. programs
  22. autoreconf, autogen and perl are added as supported programs
  23. since they are commonly used with the autotools.
  24. Some rewriting is done but the logic should NOT change.
  25. `GNU programs' is changed to `GNU programs and friends'
  26. since flex and perl are not part of GNU.
  27. * missing: add autoreconf, autogen and perl as supported programs
  28. ---
  29. missing | 47 ++++++++++++++++++++++++++++++++---------------
  30. 1 file changed, 32 insertions(+), 15 deletions(-)
  31. diff --git a/missing b/missing
  32. index 3af2828..c36b119 100755
  33. --- a/missing
  34. +++ b/missing
  35. @@ -54,8 +54,9 @@ Options:
  36. -v, --version output version information and exit
  37. Supported PROGRAM values:
  38. - aclocal autoconf autoheader autom4te automake makeinfo
  39. - bison yacc flex lex help2man
  40. + auatoconf autoheader automake autoreconf aclocal autom4te
  41. + autogen bison yacc lex flex perl
  42. + help2man makeinfo
  43. Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
  44. 'g' are ignored when checking the name.
  45. @@ -108,7 +109,7 @@ gnu_software_URL=http://www.gnu.org/software
  46. program_details ()
  47. {
  48. case $1 in
  49. - aclocal|automake)
  50. + aclocal|automake|autoreconf)
  51. echo "The '$1' program is part of the GNU Automake package:"
  52. echo "<$gnu_software_URL/automake>"
  53. echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
  54. @@ -123,6 +124,9 @@ program_details ()
  55. echo "<$gnu_software_URL/m4/>"
  56. echo "<$perl_URL>"
  57. ;;
  58. + *)
  59. + :
  60. + ;;
  61. esac
  62. }
  63. @@ -137,31 +141,38 @@ give_advice ()
  64. printf '%s\n' "'$1' is $msg."
  65. configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
  66. + autoheader_deps="'acconfig.h'"
  67. + automake_deps="'Makefile.am'"
  68. + aclocal_deps="'acinclude.m4'"
  69. case $normalized_program in
  70. autoconf*)
  71. - echo "You should only need it if you modified 'configure.ac',"
  72. - echo "or m4 files included by it."
  73. - program_details 'autoconf'
  74. + echo "You should only need it if you modified $configure_deps."
  75. ;;
  76. autoheader*)
  77. - echo "You should only need it if you modified 'acconfig.h' or"
  78. + echo "You should only need it if you modified $autoheader_deps or"
  79. echo "$configure_deps."
  80. - program_details 'autoheader'
  81. ;;
  82. automake*)
  83. - echo "You should only need it if you modified 'Makefile.am' or"
  84. + echo "You should only need it if you modified $automake_deps or"
  85. + echo "$configure_deps."
  86. + ;;
  87. + autoreconf*)
  88. + echo "You should only need it if you modified $aclocal_deps or"
  89. + echo "$automake_deps or $autoheader_deps or $automake_deps or"
  90. echo "$configure_deps."
  91. - program_details 'automake'
  92. ;;
  93. aclocal*)
  94. - echo "You should only need it if you modified 'acinclude.m4' or"
  95. + echo "You should only need it if you modified $aclocal_deps or"
  96. echo "$configure_deps."
  97. - program_details 'aclocal'
  98. ;;
  99. autom4te*)
  100. echo "You might have modified some maintainer files that require"
  101. echo "the 'autom4te' program to be rebuilt."
  102. - program_details 'autom4te'
  103. + ;;
  104. + autogen*)
  105. + echo "You should only need it if you modified a '.def' or '.tpl' file."
  106. + echo "You may want to install the GNU AutoGen package:"
  107. + echo "<$gnu_software_URL/autogen/>"
  108. ;;
  109. bison*|yacc*)
  110. echo "You should only need it if you modified a '.y' file."
  111. @@ -173,6 +184,11 @@ give_advice ()
  112. echo "You may want to install the Fast Lexical Analyzer package:"
  113. echo "<$flex_URL>"
  114. ;;
  115. + perl*)
  116. + echo "You should only need it if you modified a '.pl' or '.PL' file."
  117. + echo "You may want to install the Perl 5 language interpreter:"
  118. + echo "<$perl_URL>"
  119. + ;;
  120. help2man*)
  121. echo "You should only need it if you modified a dependency" \
  122. "of a man page."
  123. @@ -197,6 +213,7 @@ give_advice ()
  124. echo "case some other package contains this missing '$1' program."
  125. ;;
  126. esac
  127. + program_details "$normalized_program"
  128. }
  129. give_advice "$1" | sed -e '1s/^/WARNING: /' \
  130. --
  131. 2.1.4