-
-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add small shell script wrapping
port
from local sources
- Loading branch information
Showing
4 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
/Doxyfile | ||
/setupenv.bash | ||
/autom4te.cache | ||
/port.sh | ||
|
||
doc/*.gz | ||
doc/*.mtree | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
# | ||
# Simple shell script to invoke MacPorts from the source directory | ||
# | ||
|
||
export TCL_LIBRARY="@abs_srcdir@/@VENDOR_DESTROOT@@TCL_PACKAGE_PATH@/tcl@TCL_VERSION@" | ||
export TCLLIBPATH="@abs_srcdir@/src" | ||
|
||
# a small sandbox profile that denies access to installed sources | ||
sandbox_profile=" | ||
(version 1) | ||
(allow default) | ||
(deny file* (subpath \"@TCL_PACKAGE_PATH@\")) | ||
" | ||
|
||
if ! [ -d "$TCL_LIBRARY" ] || ! [ -f "@abs_srcdir@/src/port/port" ] | ||
then | ||
echo "please build MacPorts before running this script!" 1>&2 | ||
exit 1 | ||
else | ||
exec sandbox-exec -p "$sandbox_profile" \ | ||
"@INTREE_TCLSH@" "@abs_srcdir@/src/port/port" "$@" | ||
fi |