File indexing completed on 2024-06-23 04:15:17

0001 #! /bin/bash
0002 
0003 # Script to give a console with port CLI tool branched to MAcports bundle repository
0004 # This script must be run as sudo
0005 #
0006 # SPDX-FileCopyrightText: 2015-2024 by Gilles Caulier  <caulier dot gilles at gmail dot com>
0007 #
0008 # SPDX-License-Identifier: BSD-3-Clause
0009 #
0010 
0011 # Ask to run as root
0012 (( EUID != 0 )) && exec sudo -- "$0" "$@"
0013 
0014 # halt on error
0015 set -e
0016 
0017 . ../config.sh
0018 . ../common.sh
0019 
0020 #################################################################################################
0021 
0022 # Paths rules
0023 ORIG_PATH="$PATH"
0024 export PATH=$INSTALL_PREFIX/bin:/$INSTALL_PREFIX/sbin:$ORIG_PATH
0025 
0026 CommonChecks
0027 
0028 #################################################################################################
0029 
0030 port
0031 
0032 #################################################################################################
0033 
0034 export PATH=$ORIG_PATH