diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2006-03-04 13:24:20 +0000 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2006-03-04 13:24:20 +0000 |
commit | f615ea2621ea8fddcede4b8a579ac6f60066621e (patch) | |
tree | de5779dd619f351570121d7447b313b09478495e /scripts/dep_hunter.sh | |
parent | d4e336684fadb718ba0dc9d1eb3c91eca89cc081 (diff) | |
download | ptxdist-f615ea2621ea8fddcede4b8a579ac6f60066621e.tar.gz ptxdist-f615ea2621ea8fddcede4b8a579ac6f60066621e.tar.xz |
only build targets when logfile does not exist
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.10-trunk@4998 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'scripts/dep_hunter.sh')
-rwxr-xr-x | scripts/dep_hunter.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/dep_hunter.sh b/scripts/dep_hunter.sh index fb085d8e1..bfb024e26 100755 --- a/scripts/dep_hunter.sh +++ b/scripts/dep_hunter.sh @@ -15,8 +15,11 @@ packages=$(ptxdist print PACKAGES | grep "PACKAGES is" | sed "s/PACKAGES is \"\(.*\)\"$/\1/") for i in $packages; do - echo $i > logfile; - ptxdist clean - ptxdist install $i - mv logfile logfile-$i + # only build if logfile does not exist to be able to restart the script + if [ ! -f logfile-$i ]; then + echo $i > logfile; + ptxdist clean + ptxdist install $i + mv logfile logfile-$i + fi done |