Changes between Version 91 and Version 92 of PortfileRecipes
- Timestamp:
- Feb 4, 2016, 2:46:50 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PortfileRecipes
v91 v92 835 835 * wxwidgets-3.1 836 836 * zlib 837 838 839 == Checking for a symlink's existence == #symlink-exists 840 841 Checking for a file's existence is easy: 842 843 {{{ 844 if {[file exists ${f}]} { 845 ... 846 } 847 }}} 848 849 But 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 {{{ 852 if {![catch {file type ${f}}]} { 853 ... 854 } 855 }}}