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
axel@0
     1
#!/bin/csh -f
axel@0
     2
# RCSid: $Id: raddepend.csh,v 2.8 2008/08/25 04:50:32 greg Exp $
axel@0
     3
#
axel@0
     4
# Find scene dependencies in this directory
axel@0
     5
#
axel@0
     6
set es=1
axel@0
     7
onintr quit
axel@0
     8
rm -f EMPTY
axel@0
     9
echo -n > EMPTY
axel@0
    10
sleep 2
axel@0
    11
set sedf=`mktemp /tmp/sed.XXXXXX`
axel@0
    12
( ls $* | sed -e 's~/~\\/~g' -e 's@^@/^@' -e 's@$@$/d@' ; echo '/^EMPTY$/,$d' ) > $sedf
axel@0
    13
getbbox -w $* >/dev/null
axel@0
    14
set es=$status
axel@0
    15
if ( $es == 0 ) then
axel@0
    16
	sync
axel@0
    17
	sleep 2
axel@0
    18
	ls -tuL | sed -f $sedf | sort
axel@0
    19
endif
axel@0
    20
quit:
axel@0
    21
rm -f $sedf EMPTY
axel@0
    22
exit $es