[jamming] testing for existence of a file...

Anuj Goyal anuj.goyal at gmail.com
Thu Nov 18 10:39:26 PST 2004


$ cat Jamfile


NQERROR = wrope.cpp ;
local _file = [ Glob $(NQERROR) ] ;

if $(_file) {
  Echo [FOUND] I found the file ;
} else {
  Echo [NOTFOUND] I did not find the file ;
}


$ jam
[NOTFOUND] I did not find the file
...found 7 target(s)...

### and obviously wrope.cpp exists!!! 

$ ls wrope.cpp
-rw-r--r--  1 angoyal users 193 2004-09-16 21:50 wrope.cpp



More information about the jamming mailing list