Debian Codegraph @

project/bundles/macports/tools/macports-update.sh

raw
1 #!/bin/sh
2
3 # SPDX-FileCopyrightText: 2013-2026 by Gilles Caulier <caulier dot gilles at gmail dot com>
4 # This script must be run as sudo
5 #
6 # SPDX-License-Identifier: BSD-3-Clause
7 #
8
9 # Pre-processing checks
10
11 # Ask to run as root
12 (( EUID != 0 )) && exec sudo -- "$0" "$@"
13
14 # halt on error
15 set -e
16
17 . ../common.sh
18 StartScript
19 ChecksRunAsRoot
20
21 # Update Macports binary
22
23 port selfupdate
24
25 # Update all already install packages
26
27 port upgrade outdated
28
29 TerminateScript