File debian.gcc-12-update-alternatives.postinst of Package gcc-12-update-alternatives
#!/bin/sh
# postinst script for gcc-12-update-alternatives
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
configure)
update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-12 100
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 100
update-alternatives --install /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-12 100
update-alternatives --install /usr/bin/gcc-nm gcc-nm /usr/bin/gcc-nm-12 100
update-alternatives --install /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-12 100
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100
update-alternatives --install /usr/bin/gcov-dump gcov-dump /usr/bin/gcov-dump-12 100
update-alternatives --install /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-tool-12 100
update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-12 100
update-alternatives --install /usr/bin/lto-dump lto-dump /usr/bin/lto-dump-12 100
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0