Mercurial > hg > octave-lyh > gnulib-hg
changeset 3749:38f024884358
*** empty log message ***
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sun, 17 Feb 2002 19:05:53 +0000 |
parents | d70d71553cf8 |
children | 24095ab778c8 |
files | config/ChangeLog config/config.guess |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/config/ChangeLog @@ -0,0 +1,4 @@ +2002-02-17 Jim Meyering <meyering@lucent.com> + + * config.guess (main): Don't use `head -1'; it's no longer portable. + Use `sed 1q' instead.
--- a/config/config.guess +++ b/config/config.guess @@ -340,7 +340,7 @@ echo m68k-sun-sunos${UNAME_RELEASE} exit 0 ;; sun*:*:4.2BSD:*) - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) @@ -509,7 +509,7 @@ fi exit 0 ;; *:AIX:*:[45]) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else