Changes between Version 91 and Version 92 of PortfileRecipes


Ignore:
Timestamp:
Feb 4, 2016, 2:46:50 AM (8 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

add symlink-exists section

Legend:

Unmodified
Added
Removed
Modified
  • PortfileRecipes

    v91 v92  
    835835* wxwidgets-3.1
    836836* zlib
     837
     838
     839== Checking for a symlink's existence == #symlink-exists
     840
     841Checking for a file's existence is easy:
     842
     843{{{
     844if {[file exists ${f}]} {
     845    ...
     846}
     847}}}
     848
     849But if `${f}` is a symlink, `file exists` will check for the existence of the file the symlink points to. If you want to check for the existence of the symlink itself, use:
     850
     851{{{
     852if {![catch {file type ${f}}]} {
     853    ...
     854}
     855}}}