[120358] contrib/mpab/subports.tcl
jmr at macports.org
jmr at macports.org
Sat May 24 01:33:35 PDT 2014
Revision: 120358
https://trac.macports.org/changeset/120358
Author: jmr at macports.org
Date: 2014-05-24 01:33:35 -0700 (Sat, 24 May 2014)
Log Message:
-----------
mpab: update subports.tcl to work with base 2.3
Modified Paths:
--------------
contrib/mpab/subports.tcl
Modified: contrib/mpab/subports.tcl
===================================================================
--- contrib/mpab/subports.tcl 2014-05-24 07:33:59 UTC (rev 120357)
+++ contrib/mpab/subports.tcl 2014-05-24 08:33:35 UTC (rev 120358)
@@ -1,5 +1,7 @@
-#!/usr/bin/tclsh
+#!/bin/sh
#
+# \
+if /usr/bin/which -s port-tclsh; then exec port-tclsh "$0" "$@"; else exec /usr/bin/tclsh "$0" "$@"; fi
# Generates a list of the subports for the given port.
#
# Copyright (c) 2011 The MacPorts Project.
@@ -35,7 +37,9 @@
set prefix /opt/local
}
-source ${prefix}/share/macports/Tcl/macports1.0/macports_fastload.tcl
+if {[file isfile ${prefix}/share/macports/Tcl/macports1.0/macports_fastload.tcl]} {
+ source ${prefix}/share/macports/Tcl/macports1.0/macports_fastload.tcl
+}
package require macports
if {[catch {mportinit "" "" ""} result]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140524/394bba85/attachment.html>
More information about the macports-changes
mailing list