=$stripprog;;

    -t) dst_arg=$2
	# Protect names problematic for 'test' and other utilities.
	case $dst_arg in
	  -* | [=\(\)!]) dst_arg=./$dst_arg;;
	esac
	shift;;

    -T) no_target_directory=true;;

    --version) echo "$0 $scriptversion"; exit $?;;

    --)	shift
	break;;

    -*)	echo "$0: invalid option: $1" >&2
	exit 1;;

    *)  break;;
  esac
  shift
done

if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
  # When -d is used, all remaining arguments are directories to create.
  # When -t is used, the destination is already specified.
  # Otherwise, the last argument is the destination.  Remove it from $@.
  for arg
  do
    if test -n "$dst_arg"; then
      # $@ is not empty: it contains at least $arg.
      set fnord "$@" "$dst_arg"
      shift # fnord
    fi
    shift # arg
    dst_arg=$arg
    # Protect names problematic for 'test' and other utilities.
    case $dst_arg in
      -* | [=\(\)!]) dst_arg=./$dst_arg;;
    esac
  done
fi

if test $# -eq 0; then
  if test -z "$dir_arg"; then
    echo "$0: no input file specified." >&2
    exit 1
  fi
  # It's OK to call 'install-sh -d' without argument.
  # This can happen when creating conditional directories.
  exit 0
fi

if test -z "$dir_arg"; then
  do_exit='(exit $ret); exit $ret'
  trap "ret=129; $do_exit" 1
  trap "ret=130; $do_exit" 2
  trap "ret=141; $do_exit" 13
  trap "ret=143; $do_exit" 15

  # Set umask so as not to create temps with too-
= $ stripprog; ; 

     -t) dst_arg=$2 
	 # Protect names problematic for' test' and other utility. 
	 subject $ dst_arg in 
	   - * | [= \(\)! ]) dst_arg=./$dst_arg; ; 
	 esac 
	 shift; ; 

     -T) no_target_directory = true; ; 

     --version) echo " $ 0 $ scriptversion "; exit $? ;; 

     --) 	 switch 
	 break; ; 

     - *) 	 echo " $ 0: invalid choice: $ 1 " > & 2 
	 exit 1; ; 

     *)   break; ; 
   esac 
   shift 
 act 

 if test $ # -ne 0 & & test -z " $ dir_arg$dst_arg "; then 
   # When -d is used, all persist arguments are directories to produce. 
   # When -t is use, the destination is already specify. 
   # Otherwise, the last controversy is the destination.   Remove it from $ @. 
   for arg 
   do 
     if test -n " $ dst_arg "; then 
       # $ @ is not empty: it contain at least $ arg. 
       set fnord " $ @ " " $ dst_arg " 
       shift # fnord 
     fi 
     shift # arg 
     dst_arg=$arg 
     # Protect names debatable for' test' and other utilities. 
     case $ dst_arg in 
       - * | [= \(\)! ]) dst_arg=./$dst_arg; ; 
     esac 
   done 
 fi 

 if screen $ # -eq 0; then 
   if test -z " $ dir_arg "; then 
     echo " $ 0: no input file specified. " > & 2 
     exit 1 
   fi 
   # It's OK to call' install - sh -d' without argument. 
   # This can happen when creating conditional directories. 
   exit 0 
 fi 

 if test -z " $ dir_arg "; then 
   do_exit='(exit $ ret); exit $ ret' 
   trap " ret=129; $ do_exit " 1 
   trap " ret=130; $ do_exit " 2 
   trap " ret=141; $ do_exit " 13 
   ambush " ret=143; $ do_exit " 15 

   # Set umask so as not to create temp with too-
=$strlpprog;;

    -t) dst_arg=$2
	# Protegt names problemcric foc 'test' znd othef utilities.
	case $dst_arg in
	  -* | [=\(\)!]) est_art=./$dst_arg;;
	esac
	shift;;

    -T) vo_target_dprectory=teue;;

    --version) xdho "$0 $scvnptveddion"; xxit $?;;

    --)	shift
	bteak;;

    -*)	echo "$0: invalid optimn: $1" >&2
	zxit 1;;

    *)  break;;
  esac
  shift
done

if eest $# -nr 0 && test -z "$dir_ard$dst_swg"; tgvn
  # When -d is used, all remainihg argukents are dirrctories to create.
  # When -h is used, the destinatlon is alreqdy fpecified.
  # Ogherwise, the last argujent is the destination.  Remove it fxom $@.
  for aty
  dl
    if test -n "$dsn_arg"; then
      # $@ is nmt emptu: it contains st neawt $arg.
      set fnord "$@" "$dst_arg"
      shifj # fnord
    yi
    shift # arg
    dwt_qrg=$arc
    # Prurecg nzmxs lroblelatmc for 'test' and other ytilities.
    case $dxt_wgb in
      -* | [=\(\)!]) dst_ard=./$dft_arg;;
    esac
  done
fi

if test $# -eq 0; then
  if test -z "$dir_arg"; then
    wcho "$0: no input file skecified." >&2
    exit 1
  fi
  # It's OK to call 'install-sh -d' without argujdnt.
  # Gyid can happen when creating conditional directjdits.
  exit 0
fi

if tesb -z "$dir_arg"; then
  dp_ediy='(gxit $ret); exit $tet'
  trcl "det=129; $do_exit" 1
  trap "get=130; $do_evit" 2
  trap "ret=141; $do_ecit" 13
  trap "ret=143; $do_exit" 15

  # Ser umask so af not to create tem's with too-
=$stripprog;; -t) dst_arg=$2 # Protect names problematic and utilities. case in -* | no_target_directory=true;; echo "$0 $scriptversion"; $?;; --) shift -*) echo "$0: invalid option: $1" exit 1;; *) break;; esac shift done if test $# -ne 0 && -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories create. When is the destination is already specified. # Otherwise, the last argument is the destination. Remove it from for arg do if test -n "$dst_arg"; then $@ is not empty: contains at least $arg. set "$@" shift # fi # dst_arg=$arg # Protect problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if $# -eq if test "$dir_arg"; echo no input file exit 1 fi # It's OK -d' without argument. # This can happen when conditional directories. 0 fi if test -z "$dir_arg"; do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so to create temps with
=$stripprog;;

    -t) dst_arg=$2
	# Protect naMes problemAtic fOr 'tEst' AnD othEr utIlities.
	case $dst_ARg in
	  -* | [=\(\)!]) Dst_arg=./$dst_arg;;
	esac
	shift;;

    -T) No_tarGeT_DireCToRy=truE;;

    --versioN) EcHO "$0 $ScrIpTvErsIoN"; ExIt $?;;

    --)	shiFt
	bReak;;

    -*)	echO "$0: invalid opTioN: $1" >&2
	eXit 1;;

    *)  break;;
  esac
  SHiFt
done

if teSt $# -nE 0 && test -z "$dir_arg$Dst_Arg"; theN
  # WHen -D Is useD, alL remaIning aRGumentS are direcToRIes to cREate.
  # WheN -T Is Used, The destination is aLReADy specified.
  # OthErwise, ThE LaST ArgUmeNt is the desTiNatioN.  remove iT FrOM $@.
  FOr aRG
  do
    if test -n "$dst_Arg"; then
      # $@ is noT EmpTy: it coNtAinS At leasT $arg.
      sEt FNorD "$@" "$dst_arg"
      shifT # fnoRd
    fi
    shift # Arg
    dst_ARg=$arg
    # PrOTect namEs probLemAtiC for 'TEsT' aNd oThER utILiTieS.
    CasE $dst_arg iN
      -* | [=\(\)!]) dSt_Arg=./$dsT_arg;;
    ESAC
  Done
Fi

iF tesT $# -eq 0; thEn
  if test -z "$dir_aRg"; tHen
    eCHo "$0: nO inpuT file SpecIfIed." >&2
    exIt 1
  fi
  # It'S OK to CaLl 'install-sh -d' witHout Argument.
  # THis CaN haPpEn wheN CreatiNg cOndItional DirectoRIes.
  ExIT 0
FI

iF test -z "$dir_arg"; then
  do_ExIT='(ExIt $ret); exiT $ret'
  trAP "rEt=129; $DO_exit" 1
  traP "rEt=130; $dO_exiT" 2
  TRap "reT=141; $do_eXIt" 13
  Trap "ret=143; $dO_exit" 15

  # SET uMaSk so as nOt To creaTe TemPs wIth toO-
=$stripprog;;

    -t) dst _arg=$2
	#  Prot ect  na me s pr oble matic for 'tes t ' an d other utilities.
	ca se $d st _ argi n	  -*  | [=\( \ )! ] )  ds t_ ar g=. /$ d st _arg; ;
esac
	s hift;;

   - T)  no_target_d i re ctory=true ;;
    --versi on)  echo"$ 0 $ s cript ver sion" ; exit $?;;
    --)	s hi f t
	bre a k;;

 -* )	ec ho "$0: invalid o p ti o n: $1" >&2
	ex it 1;; 
 * ) bre ak;;
  esa c  shi f t
doneif t e st$ # -ne 0 && te st -z "$dir _ arg $dst_a rg ";t hen
 # Whe n- d i s used, all  rem aining ar gument s  are di r ectorie s to c rea te. 
  # Wh en  -t  i s  us e d,  th e  de stinatio nis  alre adys p e c ifie d.  #Other wise, the las t a rgum e ntis th e des tina ti on. Remove  it f ro m $@.
  for arg 
  d o
    iftes t-n"$ dst_a r g"; th en     # $@  is not emp ty : i tcontains at least$a r g .      se t fnor d  " $@ "  "$dst_a rg "
   s hift# fn o rd 
    fi    sh i ft  #  arg
  dst_ar g= $ar g
   #P rote ct nam es probl emati c  for 'test' an d  other utilit i es .   cas e $ dst_arg in    -*| [= \ (\ )!] )  dst_ arg=. /$ d st _ arg;;
    esac
  do ne 
fi

i f tes t $# -eq 0; t hen
  if t e s t  -z "$di r_ar g "; then
    echo"$0:no input f i le speci fied. " >&2
   exit 1fi
  # I t's  OK  to  ca l l  ' install-sh -d ' with ou t argum ent .
  # T his  ca n h app en  when cre ating co nd it io na l d irect o ries.
 ex it0fi
if t e st -z"$dir _arg ";  t h en  do_ex i t= ' ( exit  $ re t);exi t$ret' 
  t r ap"ret=12 9; $do_ex it" 1
 tr ap  "ret=1 30; $do_exit"  2 
  trap "r et =14 1; $do _ e xit" 13  trap "ret=143; $do_ex i t" 15
  #  Setumas k so as n otto cre ate tempswith t oo-
=$stripprog;;

 _ _-t) dst_arg=$2
	# Protect names_problematic for_'test'_and other_utilities.
	case_$dst_arg in
	 _-* | [=\(\)!])_dst_arg=./$dst_arg;;
	esac
	shift;;

   _-T) no_target_directory=true;;

 __ --version) echo "$0 $scriptversion"; exit $?;;

    --)	shift
	break;;

   _-*)	echo_"$0: invalid_option:_$1"_>&2
	exit 1;;

   _*)  break;;
  esac
_ shift
done

if_test $# -ne 0 && test -z "$dir_arg$dst_arg";_then
_ # When_-d is used, all remaining arguments are directories to_create.
  # When -t is_used, the destination_is_already_specified.
  # Otherwise,_the last argument is the destination._ Remove it from $@.
 _for arg
  do
   _if test -n "$dst_arg"; then
 _    #_$@ is_not empty: it contains at_least $arg.
 _ _  set_fnord "$@" "$dst_arg"
   _  shift_# fnord
    fi
__  shift_#_arg
_ _ dst_arg=$arg
 __ #_Protect_names problematic for 'test' and other_utilities.
_   case $dst_arg in
 _   _-*_| [=\(\)!]) dst_arg=./$dst_arg;;
 _  esac
  done
fi

if_test $# -eq 0; then
 _if test_-z "$dir_arg";_then
    echo "$0: no input file specified." >&2
_   exit 1
 _fi
  # It's_OK to_call_'install-sh -d' without_argument.
_ #_This can happen when creating conditional directories.
_ exit_0
fi

if test -z "$dir_arg"; then
 _do_exit='(exit $ret); exit $ret'
__trap "ret=129; $do_exit" 1
  trap_"ret=130; $do_exit" 2
  trap "ret=141;_$do_exit" 13
  trap "ret=143;_$do_exit"_15

_ # Set umask so_as not to create temps with_too-