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
axel@0
     1
#!/bin/csh -fe
axel@0
     2
# RCSid: $Id: ivprep.csh,v 2.2 2003/02/22 02:07:30 greg Exp $
axel@0
     3
#
axel@0
     4
# Prepare Instant View directory
axel@0
     5
#
axel@0
     6
if ( $#argv != 1 && $#argv != 2 ) then
axel@0
     7
	echo Usage: $0 radfile '[directory]'
axel@0
     8
	exit 1
axel@0
     9
endif
axel@0
    10
set radfile=$1
axel@0
    11
if ( $#argv == 2 ) then
axel@0
    12
	set dir=$2
axel@0
    13
else
axel@0
    14
	set dir=$radfile:r.ivd
axel@0
    15
endif
axel@0
    16
if ( ! -d $dir ) then
axel@0
    17
	mkdir $dir
axel@0
    18
endif
axel@0
    19
foreach vw ( xl Xl yl Yl zl Zl )
axel@0
    20
	rad -w -v $vw $radfile PIC=$dir/pvw QUA=L RES=768 \
axel@0
    21
			"render=-z $dir/pvw_$vw.z -pj 0"
axel@0
    22
end