(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
+2000-05-18 Alexandre Oliva <aoliva@cygnus.com>
+
+ * gcc_update (self): Set to `$0'.
+ (touch_files_reexec): Use `$self' instead of `$0'.
+ Reported by Albert Chin-A-Young <china@thewrittenword.com>
+
2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
* gcc_update (touch_files_reexec): New function, run after the
# 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
# 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.