Commit 25a9b3e5 by Alexandre Oliva Committed by Alexandre Oliva

gcc_update (touch_files_reexec): New function, run after the tree is modified.

* gcc_update (touch_files_reexec): New function, run after the
tree is modified.

From-SVN: r33882
parent 3ea2292a
2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
* gcc_update (touch_files_reexec): New function, run after the
tree is modified.
2000-05-08 Richard Hendeson <rth@cygnus.com>
* gcc_update: Remove references to inclhack.tpl.
......
......@@ -112,6 +112,13 @@ touch_files () {
done
}
# Whenever we update the tree or install a patch, we may be modifying
# this script. By re-execing it, we ensure that the appropriate
# dependencies and rules will be used.
touch_files_reexec () {
echo "Adjusting file timestamps"
exec ${CONFIG_SHELL-/bin/sh} $0 --touch
}
# This functions applies a patch to an existing tree.
apply_patch () {
......@@ -126,8 +133,7 @@ apply_patch () {
cat $1 | patch -p1 ;;
esac
fi
echo "Adjusting file timestamps"
touch_files
touch_files_reexec
}
# Check whether this indeed looks like a local tree.
......@@ -197,5 +203,4 @@ if [ $? -ne 0 ]; then
exit 1
fi
echo "Adjusting file timestamps"
touch_files
touch_files_reexec
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