orig/ivprep.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

#!/bin/csh -fe
# RCSid: $Id: ivprep.csh,v 2.2 2003/02/22 02:07:30 greg Exp $
#
# Prepare Instant View directory
#
if ( $#argv != 1 && $#argv != 2 ) then
	echo Usage: $0 radfile '[directory]'
	exit 1
endif
set radfile=$1
if ( $#argv == 2 ) then
	set dir=$2
else
	set dir=$radfile:r.ivd
endif
if ( ! -d $dir ) then
	mkdir $dir
endif
foreach vw ( xl Xl yl Yl zl Zl )
	rad -w -v $vw $radfile PIC=$dir/pvw QUA=L RES=768 \
			"render=-z $dir/pvw_$vw.z -pj 0"
end