Skip to content

Commit 5b9d294

Browse files
committed
add small shell script wrapping port from local sources
1 parent 8402cf8 commit 5b9d294

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

port.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh
2+
#
3+
# Simple shell script to invoke MacPorts from the source directory
4+
#
5+
6+
BASEDIR=$(cd $(dirname $0); pwd)
7+
8+
tclsh=$BASEDIR/vendor/tclsh
9+
port=$BASEDIR/src/port/port
10+
11+
export TCLLIBPATH=$BASEDIR/src
12+
13+
if [ ! -x $tclsh ]
14+
then
15+
echo "please build MacPorts before running this script!" 1>&2
16+
exit 1
17+
else
18+
exec $tclsh $port "$@"
19+
fi

0 commit comments

Comments
 (0)