Skip to content

Commit

Permalink
add small shell script wrapping port from local sources
Browse files Browse the repository at this point in the history
  • Loading branch information
danchr committed Aug 20, 2020
1 parent ab10daa commit 61fe4d6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions port.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh
#
# Simple shell script to invoke MacPorts from the source directory
#

BASEDIR=$(cd $(dirname "$0"); pwd)

tclsh=$BASEDIR/vendor/tclsh
port=$BASEDIR/src/port/port

export TCLLIBPATH=$BASEDIR/src

if [ ! -x "$tclsh" ]
then
echo "please build MacPorts before running this script!" 1>&2
exit 1
else
exec "$tclsh" "$port" "$@"
fi

0 comments on commit 61fe4d6

Please sign in to comment.