Debian Codegraph @

project/bundles/homebrew/tools/console.sh

raw
1 #! /bin/bash
2
3 # Script to give a console with port CLI tool branched to MAcports bundle repository
4 # This script must be run as sudo
5 #
6 # SPDX-FileCopyrightText: 2015-2026 by Gilles Caulier <caulier dot gilles at gmail dot com>
7 #
8 # SPDX-License-Identifier: BSD-3-Clause
9 #
10
11 # Ask to run as root
12 (( EUID != 0 )) && exec sudo -- "$0" "$@"
13
14 # halt on error
15 set -e
16
17 . ../config.sh
18 . ../common.sh
19
20 #################################################################################################
21
22 # Paths rules
23 ORIG_PATH="$PATH"
24 export PATH=$INSTALL_PREFIX/bin:/$INSTALL_PREFIX/sbin:$ORIG_PATH
25
26 CommonChecks
27
28 #################################################################################################
29
30 port
31
32 #################################################################################################
33
34 export PATH=$ORIG_PATH