Set variables if they are not already set

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@11 d073be05-634f-4543-b044-5fe20cf6d1d6
This commit is contained in:
Landon Fuller
2002-08-01 00:21:25 +00:00
parent 5614110dcf
commit a09c15c570
+6 -2
View File
@@ -27,8 +27,12 @@ namespace eval darwinports {
set portpath /usr/darwinports
darwinports::readconf
set distpath $portpath/distfiles
set libpath ${portpath}/Tcl
if ![info exists distpath] {
set distpath $portpath/distfiles
}
if ![info exists libpath] {
set libpath $portpath/Tcl
}
if [file isdirectory $libpath] {
if [catch {pkg_mkIndex $libpath *.tcl *.so *.dylib */*.tcl */*.so */*.dylib} result] {