Mercurial > hg > octave-lyh > gnulib-hg
changeset 3934:aa1637221a20
sync and scripts to check syncness
author | Karl Berry <karl@freefriends.org> |
---|---|
date | Tue, 10 Sep 2002 23:41:12 +0000 |
parents | 91cfbab32c36 |
children | 6e8de5821d2d |
files | config/config.guess config/config.sub config/srclist-update config/srclist.txt config/srclistvars.sh |
diffstat | 5 files changed, 81 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/config/config.guess +++ b/config/config.guess @@ -3,7 +3,7 @@ # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002 Free Software Foundation, Inc. -timestamp='2002-08-23' +timestamp='2002-09-03' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -1111,7 +1111,7 @@ *:QNX:*:4*) echo i386-pc-qnx exit 0 ;; - NSR-[GKLNPTVW]:NONSTOP_KERNEL:*:*) + NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit 0 ;; *:NonStop-UX:*:*)
--- a/config/config.sub +++ b/config/config.sub @@ -3,7 +3,7 @@ # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002 Free Software Foundation, Inc. -timestamp='2002-08-22' +timestamp='2002-09-05' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software @@ -229,7 +229,7 @@ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ - | c4x | clipper \ + | clipper \ | d10v | d30v | dlx | dsp16xx \ | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ @@ -294,7 +294,7 @@ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* \ | bs2000-* \ - | c[123]* | c30-* | [cjt]90-* | c54x-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* \ | clipper-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ @@ -329,7 +329,7 @@ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ - | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \ + | tahoe-* | thumb-* | tic30-* | tic4x-* | tic54x-* | tic80-* | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ @@ -913,6 +913,10 @@ basic_machine=t90-cray os=-unicos ;; + tic4x | c4x*) + basic_machine=tic4x-unknown + os=-coff + ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff @@ -1047,10 +1051,6 @@ pmac | pmac-mpw) basic_machine=powerpc-apple ;; - c4x*) - basic_machine=c4x-none - os=-coff - ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;;
new file mode 100755 --- /dev/null +++ b/config/srclist-update @@ -0,0 +1,52 @@ +#!/bin/sh +# $Id: srclist-update,v 1.1 2002-09-10 23:41:12 karl Exp $ +# +# Check for files being up to date, according to the list on stdin. +# +# Source $mydir/srclistvars.sh first, if it exists, where +# $mydir=`dirname $0`. + +if test -n "$1"; then + cd "$1" || exit 1 +fi + +verbose=false +#chicken="echo (would)" + +srctmp=${TMPDIR-/tmp}/srclist.src +dsttmp=${TMPDIR-/tmp}/srclist.dst + +mydir=`dirname $0` +test -r $mydir/srclistvars.sh && . $mydir/srclistvars.sh + +cat | while read src dst; do + test -z "$dst" && continue # skip lines without second element + echo "$src $dst" | sed 's/#.*$//' | egrep '^\s*$' >/dev/null \ + && continue # skip whitespace and comment-only lines + + src=`eval echo $src` + if test ! -r $src; then + echo "$0: cannot read $src" >&2 + continue + fi + + # If given src/foo.c dst, copy to dst/foo.c. + dst=`eval echo $dst` + test -d $dst && dst=$dst/`basename $src` + + # $ Id: lines will differ. + fgrep -v '$'"Id:" $src >$srctmp + test -r $dst && fgrep -v '$'"Id:" $dst >$dsttmp + + if test ! -e $dst; then + echo "## $src $dst # new" + $chicken cp -p $src $dst + elif cmp -s $srctmp $dsttmp; then + $verbose && echo "## $src $dst # unchanged" + else + echo "## $src $dst # changes" + diff -c2 $src $dst + fi +done + +rm -f $srctmp $dsttmp
new file mode 100644 --- /dev/null +++ b/config/srclist.txt @@ -0,0 +1,9 @@ +# $Id: srclist.txt,v 1.1 2002-09-10 23:41:12 karl Exp $ +# Files for which we are not the source. + +TEXINFO=/u/texinfo/src +GNUCONFIG=$HOME/gnu/src/ftp.gnu.org/pub/gnu/config + +$TEXINFO/doc/texinfo.tex config +$GNUCONFIG/config.guess config +$GNUCONFIG/config.sub config
new file mode 100644 --- /dev/null +++ b/config/srclistvars.sh @@ -0,0 +1,10 @@ +# $Id: srclistvars.sh,v 1.1 2002-09-10 23:41:12 karl Exp $ +# Variables for srclist-update and srclist.txt. + +: ${EMACSSRC=$HOME/gnu/src/emacs} +: ${GETTEXT=/usr/local/gnu/share/gettext} +: ${GNUBIN=/usr/local/gnu/bin} +: ${GNUCONFIG=$HOME/gnu/src/ftp.gnu.org/pub/gnu/config} +: ${GNULIBSRC=$HOME/gnu/src/gnulib} +: ${TEXINFO=/u/texinfo/src} +: ${TEXMF=/usr/local/texmf/texmf}