summaryrefslogtreecommitdiff
path: root/contrib/gcc_update
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-18 04:19:35 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-18 04:19:35 +0000
commit41698bd225159c06de4af1234553d748e6aa7b6d (patch)
tree0f1f3da992f85c81d1f8aeca7af2fa8e84f06daf /contrib/gcc_update
parent810e9e004e9726fcaa8348ffd4dbc96d7193e6c2 (diff)
downloadgcc-41698bd225159c06de4af1234553d748e6aa7b6d.tar.gz
* gcc_update (self): Set to `$0'.
(touch_files_reexec): Use `$self' instead of `$0'. Reported by Albert Chin-A-Young <china@thewrittenword.com> git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33974 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib/gcc_update')
-rwxr-xr-xcontrib/gcc_update4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/gcc_update b/contrib/gcc_update
index a8d2ed7cc32..89677a4df1f 100755
--- a/contrib/gcc_update
+++ b/contrib/gcc_update
@@ -43,6 +43,8 @@ UPDATE_OPTIONS=-P
# locally.
# Add -A to reset any sticky tags, dates, or `-k' options.
+# Arrange for the value of $0 to be available for functions
+self=$0
# This function prints a list of all generated files, along with their
# dependencies. Note that only one target is supported per line: the
@@ -117,7 +119,7 @@ touch_files () {
# dependencies and rules will be used.
touch_files_reexec () {
echo "Adjusting file timestamps"
- exec ${CONFIG_SHELL-/bin/sh} $0 --touch
+ exec ${CONFIG_SHELL-/bin/sh} $self --touch
}
# This functions applies a patch to an existing tree.