#!/usr/bin/sh
#----------------------------------------------------------------------------
# /tmp/install.sh - go1_25 installation
#
# Creation   :  2025-09-21 holbru
# Last update:  $Id$
#
# Copyright (c) 2025-@@YEAR@@ Holger Bruenjes, holgerbruenjes(at)gmx(dot)net
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#----------------------------------------------------------------------------

# set package name
package_name=go1_25

# ---------------------------------------------------------------------------
# activate
# ---------------------------------------------------------------------------
/usr/sbin/update-alternatives \
    --install /usr/bin/go go /usr/lib64/go/1.25/bin/go 45 \
    --slave /usr/bin/gofmt gofmt /usr/lib64/go/1.25/bin/gofmt \
    --slave /etc/gdbinit.d/go.gdb go.gdb /usr/lib64/go/1.25/bin/gdbinit.d/go.gdb

echo "go manual /usr/lib64/go/1.25/bin/go" | /usr/sbin/update-alternatives --set-selections  >/dev/null 2>&1

exit 0
# ---------------------------------------------------------------------------
# end
# ---------------------------------------------------------------------------
