[PATCH] auto generate preinstall.am and clean preinstall.am

Zhu Zhongjie zhongjiezhu at yahoo.com
Wed Feb 17 09:42:22 UTC 2016


--- bootstrap | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-)
diff --git a/bootstrap b/bootstrapindex e9cb851..a3dccba 100755--- a/bootstrap+++ b/bootstrap@@ -69,6 +69,28 @@ if test ! -f $top_srcdir/aclocal/version.m4; then   exit 1 fi +generate_preinstall_am()+{+  confs=`find . -name Makefile.am -exec grep -l 'include .*/preinstall\.am' {} \;`+  for i in $confs; do+    dir=$(dirname $i)+    test "$quite" = "true" || echo "Generating $dir/preinstall.am"+    ${top_srcdir}/ampolish3 "$dir/Makefile.am" > "$dir/preinstall.am"+  done+}++clean_preinstall_am()+{+  test "$quiet" = "true" || echo "removing preinstall.am files"+  files=`find . -name 'preinstall.am' -print`+  for i in $files; do+    if test -f $i; then+      rm -f $i+      test "$verbose" = "-v" && echo "$i"+    fi+  done+}+ while test $# -gt 0; do case $1 in -h|--he|--hel|--help)@@ -103,12 +125,7 @@ done  case $mode in preinstall)-  confs=`find . -name Makefile.am -exec grep -l 'include .*/preinstall\.am' {} \;`-  for i in $confs; do-    dir=$(dirname $i)-    test "$quite" = "true" || echo "Generating $dir/preinstall.am"-    ${top_srcdir}/ampolish3 "$dir/Makefile.am" > "$dir/preinstall.am"-  done+  generate_preinstall_am   ;;  generate)@@ -175,6 +192,8 @@ autoreconf)     exit 1   fi +  generate_preinstall_am+   confs=`find . -name 'configure.ac' -print`   for i in $confs; do   dir=`dirname $i`@@ -246,6 +265,8 @@ clean)     fi   done +  clean_preinstall_am+   find . -name '*~' -print | xargs rm -f   find . -name 'bspopts.h.in' -print | xargs rm -f   find . -name '*.orig' -print | xargs rm -f-- 1.9.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20160217/0bdd7140/attachment.html>


More information about the devel mailing list