macos-setup: various cleanups.

In uninstall_autoconf, when running uninstall subfunctions, pass the
arguments to the subfunctions.

When uninstalling Ninja, remove the "we've finished installing this"
indicator file.

Get rid of a debugging "set +x".


(cherry picked from commit 9fbf79c045)
This commit is contained in:
Guy Harris 2020-12-17 02:14:30 +00:00
parent 7901947b11
commit e1535a9aa3
1 changed files with 3 additions and 2 deletions

View File

@ -327,8 +327,8 @@ uninstall_autoconf() {
#
# automake and libtool depend on this, so uninstall them.
#
uninstall_libtool
uninstall_automake
uninstall_libtool "$@"
uninstall_automake "$@"
echo "Uninstalling GNU autoconf:"
cd autoconf-$installed_autoconf_version
@ -447,6 +447,7 @@ uninstall_ninja() {
if [ ! -z "$installed_ninja_version" ]; then
echo "Uninstalling Ninja:"
sudo rm /usr/local/bin/ninja
rm ninja-$installed_ninja_version-done
if [ "$#" -eq 1 -a "$1" = "-r" ] ; then
rm -f ninja-mac-v$installed_ninja_version.zip
fi