#! /bin/sh
 
#    Jun 03/91 - F.Majaess
 
#id  swtches_prmtrs - Used to check/set switches and 
#id                                      parameters containing = sign.
 
#    AUTHOR  - F.Majaess
 
#hd  PURPOSE - "swtches_prmtrs" code is used to set switches and 
#hd                             parameters containing = sign
 
#  *  check if switches/parameters specified on script call
 
if [ $# -gt 0 ] ; then
  
#  * put argument list in "prmtrl" ...
   
  prmtrl=$@
  tprmtr=
  
#  * for each argument specified do...
    
  for prmtr in $prmtrl
  do
    case $prmtr in
 
#   * check for standard shell switches and set them accordingly
 
     --|-|[-+][aefhkntuvx]) set `echo $prmtr ` ;;
 
#   * case where a parameter is to be assigned a value
 
    *=*   ) eval $prmtr ;;
 
#   * anything else case accumulate in "tprmtr" temporary var...
 
    *  )  tprmtr="$tprmtr $prmtr";;
 
    esac
  done
 
#   * return in "prmtrl" the list of undelt with parameters...
 
  prmtrl=$tprmtr
  tprmtr=
 
fi

