Commit 32f84e48 by Kelley Cook Committed by R. Kelley Cook

install-sh, compile: Import from automake.

2004-11-15  Kelley Cook  <kcook@gcc.gnu.org>

	* install-sh, compile: Import from automake.

From-SVN: r90710
parent 9587be8a
2004-11-15 Kelley Cook <kcook@gcc.gnu.org> 2004-11-15 Kelley Cook <kcook@gcc.gnu.org>
* install-sh, compile: Import from automake.
2004-11-15 Kelley Cook <kcook@gcc.gnu.org>
* config.guess, config.sub: Import from savannnah. * config.guess, config.sub: Import from savannnah.
2004-11-12 Scott Robert Ladd <scott.ladd@coyotegulch.com> 2004-11-12 Scott Robert Ladd <scott.ladd@coyotegulch.com>
......
#! /bin/sh #! /bin/sh
# Wrapper for compilers which do not understand `-c -o'. # Wrapper for compilers which do not understand `-c -o'.
scriptversion=2004-09-10.20 scriptversion=2004-10-12.08
# Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc. # Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>. # Written by Tom Tromey <tromey@cygnus.com>.
...@@ -125,6 +125,8 @@ ret=$? ...@@ -125,6 +125,8 @@ ret=$?
if test -f "$cofile"; then if test -f "$cofile"; then
mv "$cofile" "$ofile" mv "$cofile" "$ofile"
elif test -f "${cofile}bj"; then
mv "${cofile}bj" "$ofile"
fi fi
rmdir "$lockdir" rmdir "$lockdir"
......
#!/bin/sh #!/bin/sh
# install - install a program, script, or datafile # install - install a program, script, or datafile
scriptversion=2004-09-10.20 scriptversion=2004-10-22.00
# This originates from X11R5 (mit/util/scripts/install.sh), which was # This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the # later released in X11R6 (xc/config/util/install.sh) with the
...@@ -213,7 +213,7 @@ do ...@@ -213,7 +213,7 @@ do
fi fi
# This sed command emulates the dirname command. # This sed command emulates the dirname command.
dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
# Make sure that the destination directory exists. # Make sure that the destination directory exists.
...@@ -226,7 +226,8 @@ do ...@@ -226,7 +226,8 @@ do
oIFS=$IFS oIFS=$IFS
# Some sh's can't handle IFS=/ for some reason. # Some sh's can't handle IFS=/ for some reason.
IFS='%' IFS='%'
set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
shift
IFS=$oIFS IFS=$oIFS
pathcomp= pathcomp=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment