lib/update.updates
branchdns-new
changeset 607 77df429f63a3
parent 605 26a307558602
child 608 4ad9c9b7cd0e
equal deleted inserted replaced
606:5a83f2abc0dd 607:77df429f63a3
    34     for dep in "$@"; do
    34     for dep in "$@"; do
    35         # don't bother checking if already figured out
    35         # don't bother checking if already figured out
    36         [ $update ] && continue
    36         [ $update ] && continue
    37 
    37 
    38         # check
    38         # check
    39         if [ ! -e $dep ]; then
    39         if [ ! -e "$dep" ]; then
    40             fail "$out: Missing source: $dep"
    40             fail "$out: Missing source: $dep"
    41 
    41 
    42         elif [ $out -ot $dep ]; then
    42         elif [ $out -ot "$dep" ]; then
    43             debug "  update: $dep"
    43             debug "  update: $dep"
    44             update=y
    44             update=y
    45         else
    45         else
    46             debug "  check: $dep"
    46             debug "  check: $dep"
    47         fi
    47         fi