orig/raddepend.csh
author Axel Jacobs <axel@jaloxa.eu>
Mon, 14 Apr 2014 22:21:17 +0100
changeset 73 87fa3132a136
parent 0 0aa115157c9c
permissions -rw-r--r--
New IES test file with spaces in file name
     1 #!/bin/csh -f
     2 # RCSid: $Id: raddepend.csh,v 2.8 2008/08/25 04:50:32 greg Exp $
     3 #
     4 # Find scene dependencies in this directory
     5 #
     6 set es=1
     7 onintr quit
     8 rm -f EMPTY
     9 echo -n > EMPTY
    10 sleep 2
    11 set sedf=`mktemp /tmp/sed.XXXXXX`
    12 ( ls $* | sed -e 's~/~\\/~g' -e 's@^@/^@' -e 's@$@$/d@' ; echo '/^EMPTY$/,$d' ) > $sedf
    13 getbbox -w $* >/dev/null
    14 set es=$status
    15 if ( $es == 0 ) then
    16 	sync
    17 	sleep 2
    18 	ls -tuL | sed -f $sedf | sort
    19 endif
    20 quit:
    21 rm -f $sedf EMPTY
    22 exit $es