#!/bin/csh -f
# SETGAMMA v1.01 Jean-Jacques Tremblay 07.03.94
# This used to 'calibrate' your monitor.  Use this in conjunction with
# myGamCal (found in the gifts/bin).
 
if ( $#argv != 3) then
	echo "SETGAMMA v1.01 Jean-Jacques Tremblay 07.03.94"
	echo "---------------------------------------------"
	echo ""
	echo "Usage: SETGAMMA <start_gamma> <end_gamma> <inc_gamma>"
	exit 0
endif
set s = $1; set e = $2; set i = $3;
set S = `echo "$s * 1000"|/usr/bin/bc|cut -d. -f1`
set E = `echo "$e * 1000"|/usr/bin/bc|cut -d. -f1`
while ( $S <= $E )
	echo "$s ?\c"
	set tmp = `line`
	gamma $s
	set s = `echo $s + $i|/usr/bin/bc`
	set S = `echo "$s * 1000"|/usr/bin/bc|cut -d. -f1`
end

