Mercurial > hg > aboriginal
comparison system-image.sh @ 1818:78bdf7e5f5b3 draft
Fix new dependency logic (checking wrong directory, permissions wrong on file).
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 23 Nov 2015 18:47:57 -0600 |
parents | 92d542aa6ceb |
children | 893e70efe047 |
comparison
equal
deleted
inserted
replaced
1817:92d542aa6ceb | 1818:78bdf7e5f5b3 |
---|---|
18 shift | 18 shift |
19 [ ! -e "$X" ] && return 0 | 19 [ ! -e "$X" ] && return 0 |
20 [ "$(which "${CC_PREFIX}cc")" -nt "$X" ] && return 0 | 20 [ "$(which "${CC_PREFIX}cc")" -nt "$X" ] && return 0 |
21 while [ ! -z "$1" ] | 21 while [ ! -z "$1" ] |
22 do | 22 do |
23 [ ! -z "$(find "$X" -newer "$X" 2>/dev/null)" ] && return 0 | 23 [ ! -z "$(find "$1" -newer "$X" 2>/dev/null)" ] && return 0 |
24 shift | 24 shift |
25 done | 25 done |
26 | 26 |
27 echo "Keeping $(basename "$X")" | |
27 return 1 | 28 return 1 |
28 } | 29 } |
29 | 30 |
30 # Provide qemu's common command line options between architectures. | 31 # Provide qemu's common command line options between architectures. |
31 | 32 |