]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2004-11-15 Kelley Cook <kcook@gcc.gnu.org>
authorkcook <kcook@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Nov 2004 01:04:30 +0000 (01:04 +0000)
committerkcook <kcook@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Nov 2004 01:04:30 +0000 (01:04 +0000)
* install-sh, compile: Import from automake.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90710 138bc75d-0d04-0410-961f-82ee72b054a4

ChangeLog
compile
install-sh

index c7de93e40ddaaa359231e4ba4ad9851ade7ed3df..35e6d98ad6920eb515eb1a8e913b69ad9ccbb22d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+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.
diff --git a/compile b/compile
index 80b645b015f3cbee717fd38ca22e857c8cd70830..3d2170320efc07c320445d98bb4bfad1393a4e8d 100644 (file)
--- a/compile
+++ b/compile
@@ -1,7 +1,7 @@
 #! /bin/sh
 # 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.
 # Written by Tom Tromey <tromey@cygnus.com>.
@@ -125,6 +125,8 @@ ret=$?
 
 if test -f "$cofile"; then
   mv "$cofile" "$ofile"
+elif test -f "${cofile}bj"; then
+  mv "${cofile}bj" "$ofile"
 fi
 
 rmdir "$lockdir"
index dd97db7aa1cae9655149aad9d21c6cf42476c0da..0b65ee871d33c7ab1e6ec36b86dda87e0d85c6ee 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # 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
 # later released in X11R6 (xc/config/util/install.sh) with the
@@ -213,7 +213,7 @@ do
   fi
 
   # 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.
 
@@ -226,7 +226,8 @@ do
     oIFS=$IFS
     # Some sh's can't handle IFS=/ for some reason.
     IFS='%'
-    set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
+    set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
+    shift
     IFS=$oIFS
 
     pathcomp=