Mercurial > hg > octave-nkf > gnulib-hg
changeset 5352:f1f20fc1ff2f
Emit separators in lib/Makefile.am.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 15 Oct 2004 16:51:32 +0000 |
parents | 7c565c8ecabc |
children | c3faa73baf9d |
files | ChangeLog gnulib-tool |
diffstat | 2 files changed, 23 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-10-15 Bruno Haible <bruno@clisp.org> + + * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate + the portions belonging to each module. + Suggested by Derek Robert Price <derek@ximbiot.com>. + 2004-10-15 Bruno Haible <bruno@clisp.org> * gnulib-tool: Untabify. Initialize supplied_libname.
--- a/gnulib-tool +++ b/gnulib-tool @@ -22,7 +22,7 @@ progname=$0 package=gnulib -cvsdatestamp='$Date: 2004-10-15 16:45:28 $' +cvsdatestamp='$Date: 2004-10-15 16:51:32 $' last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'` version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'` @@ -450,13 +450,26 @@ echo "CLEANFILES =" echo "DISTCLEANFILES =" echo "MAINTAINERCLEANFILES =" + echo for module in $modules; do func_verify_module if test -n "$module"; then - func_get_automake_snippet "$module" | sed -e "s,lib_SOURCES,$libname"'_a_SOURCES,g' -e "s,lib_OBJECTS,$libname"'_a_OBJECTS,g' - if test "$module" = 'alloca'; then - echo "${libname}_${libext}_LIBADD += @{perhapsLT}ALLOCA@" + { + func_get_automake_snippet "$module" | sed -e "s,lib_SOURCES,$libname"'_a_SOURCES,g' -e "s,lib_OBJECTS,$libname"'_a_OBJECTS,g' + if test "$module" = 'alloca'; then + echo "${libname}_${libext}_LIBADD += @{perhapsLT}ALLOCA@" + fi + } > amsnippet.tmp + # Skip the contents if its entirely empty. + if grep '[^ ]' amsnippet.tmp > /dev/null ; then + echo "## begin gnulib module $module" + echo + cat amsnippet.tmp + echo + echo "## end gnulib module $module" + echo fi + rm -f amsnippet.tmp fi done }