#!/bin/csh -f
#
# This script sets the quota for a uid on a filesystem. 

set dev=$1

# Checking for /etc/enforce_quota is transitional code and should be 
# removed when the SMS database has an accurate understanding of what
# everyone's quotas are.
if ( -f /etc/enforce_quota ) then
   while (1)
      # set args = $< will NOT work.  $< will be treated as a single word
      set args = `echo $<`
 
      if (${#args} != 2) break

      set uid = $args[1]
      set quota = $args[2]

      setquota $dev $uid $quota
   end
endif

exit 0

#
# 	$Source: /afs/athena.mit.edu/astaff/project/moiradev/src/gen/RCS/install_quotas,v $
#	$Header: /afs/athena.mit.edu/astaff/project/moiradev/src/gen/RCS/install_quotas,v 1.2 88/08/22 14:46:14 qjb Exp $
#
