From: Tom Tromey Date: Sun, 26 Nov 1995 05:37:37 +0000 (+0000) Subject: Minor internationalization fixes. X-Git-Tag: Release-0-25~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa5d0fa2fdc0097f783a0c9e7ef910bb6c1bf5ed;p=thirdparty%2Fautomake.git Minor internationalization fixes. Subshell can now exit with nonzero status. Fixed up .texi handling; now uses texi-version.am Make sure '.c' and '.o' are in .SUFFIXES if required. --- diff --git a/automake.in b/automake.in index 8c95ff476..96fc267c0 100755 --- a/automake.in +++ b/automake.in @@ -74,7 +74,7 @@ while test $# -gt 0; do --amdir | --a* ) if test $# -eq 1; then - echo "automake: no argument given for option \`$1'" 1>&2 + $echo "automake: no argument given for option \`$1'" 1>&2 exit 1 fi shift @@ -144,8 +144,17 @@ for am_makefile in $mfiles; do fi ( + am_localstatus=0 + $echo "creating ${am_makefile}.in" + # Find our directory relative to top. + am_reldir=`echo "$am_makefile" | sed 's,//*[^/][^/]*$,,g'` + if test "$am_reldir" = "$am_makefile"; then + # Bogus. + am_reldir=. + fi + exec 4> ${am_makefile}.vars exec 5> ${am_makefile}.rules @@ -197,6 +206,8 @@ for am_makefile in $mfiles; do cat $am_dir/compile-vars.am >&4 cat $am_dir/compile.am >&5 + am_suffixes=".c .o $am_suffixes" + # Check for automatic de-ANSIfication. if grep @kr@ ${am_makefile}.am >/dev/null; then cat $am_dir/compile-kr.am >&5 @@ -292,17 +303,41 @@ p fi if test -n "$TEXINFOS"; then - cat $am_dir/texinfos-vars.am >&4 - cat $am_dir/texinfos.am >&5 - am_suffixes=".texi .info .dvi $am_suffixes" - installdata="install-info $installdata" - uninstall="uninstall-info $uninstall" - info="\$(INFO_DEPS) $info" - dvi="\$(DVIS) $dvi" - - echo "$TEXINFOS" | sed 's/^/INFOS = /; s/\.texi/.info*/g' >&4 - echo "$TEXINFOS" | sed 's/^/INFO_DEPS = /; s/\.texi/.info/g' >&4 - echo "$TEXINFOS" | sed 's/^/DVIS = /; s/\.texi/.dvi/g' >&4 + # Give an error if more than one texinfo is defined -- we + # can't handle that. But how to count? Sigh. We do the naive, + # broken thing. + set $TEXINFOS + if test $# -gt 1; then + $echo "automake: $am_makefile specified more than one file in \`TEXINFOS'" + am_localstatus=1 + else + sed "s/@TEXI@/$TEXINFOS/g" $am_dir/texi-version.am >&5 + + am_infobase=`echo "$TEXINFOS" | sed 's/\.texi//'` + + am_deps=version.texi + if eval "test \"\$var_${am_infobase}_TEXINFOS\" = explicit"; then + # User supplied eg automake_TEXINFOS. So use those as + # dependencies. + am_deps="\$(${am_infobase}_TEXINFOS) $am_deps" + fi + + + echo "${am_infobase}.info: $am_deps" >&5 + echo >&5 + + cat $am_dir/texinfos-vars.am >&4 + cat $am_dir/texinfos.am >&5 + am_suffixes=".texi .info .dvi $am_suffixes" + installdata="install-info $installdata" + uninstall="uninstall-info $uninstall" + info="\$(INFO_DEPS) $info" + dvi="\$(DVIS) $dvi" + + echo "$TEXINFOS" | sed 's/^/INFOS = /; s/\.texi/.info*/g' >&4 + echo "$TEXINFOS" | sed 's/^/INFO_DEPS = /; s/\.texi/.info/g' >&4 + echo "$TEXINFOS" | sed 's/^/DVIS = /; s/\.texi/.dvi/g' >&4 + fi fi if test -n "$MANS"; then @@ -391,11 +426,7 @@ p # # Handle "dist" targets. # - am_reldir=`echo "$am_makefile" | sed 's,//*[^/][^/]*$,,g'` - if test "$am_reldir" = "$am_makefile"; then - # Bogus. - am_reldir=. - fi + # Look for certain common files and make sure they are included. dlist= for cfile in $common; do @@ -563,7 +594,10 @@ p cat ${am_makefile}.rules >&6 rm -f ${am_makefile}.vars ${am_makefile}.rules -) + exit $am_localstatus +) || { + am_status = 1 +} done exit $am_status