changeset 1818:78bdf7e5f5b3

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 40c2fe006fcf
files build.sh system-image.sh
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/system-image.sh	Sun Nov 22 14:54:16 2015 -0600
+++ b/system-image.sh	Mon Nov 23 18:47:57 2015 -0600
@@ -20,10 +20,11 @@
   [ "$(which "${CC_PREFIX}cc")" -nt "$X" ] && return 0
   while [ ! -z "$1" ]
   do
-    [ ! -z "$(find "$X" -newer "$X" 2>/dev/null)" ] && return 0
+    [ ! -z "$(find "$1" -newer "$X" 2>/dev/null)" ] && return 0
     shift
   done
 
+  echo "Keeping $(basename "$X")"
   return 1
 }