/usr/bin/vinfo is in radiance 4R1+20120125-1.1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | #!/bin/csh -f
# RCSid: $Id: vinfo.csh,v 3.2 2004/11/19 23:00:49 greg Exp $
#
# Edit information header in Radiance file
#
set plist=()
set ilist=()
foreach f ($*)
if (! -f $f:q) then
echo "${f}: no such file or directory"
continue
endif
if (! -w $f:q) then
echo "$f is read-only"
sleep 1
continue
endif
set info="$f.info"
getinfo < $f:q > $info:q
set plist=($plist:q $f:q)
set ilist=($ilist:q $info:q)
end
vi $ilist:q
set i=1
while ( $i <= $#plist )
set f=$plist[$i]:q
set info=$ilist[$i]:q
if ("`tail -1 $info:q`" != "") then
echo "" >> $info:q
endif
getinfo < $f:q | cmp -s - $info:q
if ($status != 0) then
getinfo - < $f:q >> $info:q
mv $info:q $f:q
else
rm $info:q
endif
@ i++
end
|