view lib-src/installexe.sh @ 936:0f9686ac3ce7

[xemacs-hg @ 2002-07-29 21:52:14 by scop] 2002-07-30 Ville Skyttä <ville.skytta@xemacs.org> * term.texi (Input to the inferior): Fix term line/char mode switch keybindings. Kudos to Jacob P. Burckhardt. * xemacs/misc.texi (Term Mode): Ditto. Message-Id: <1027534880.15332.209.camel@bobcat.ods.org>
author scop
date Mon, 29 Jul 2002 21:52:17 +0000
parents 0784d089fdc9
children 3ee1c468b215
line wrap: on
line source

#!bash

install_prog=$1
shift

tstr=""

while [ $# -gt 0 ]
do
  if [ -f $1.exe ]
  then
    tstr="$tstr$1.exe $2.exe"
    shift 2
  else
    tstr="$tstr$1 "
  fi
  shift
done
echo "$install_prog $tstr"
eval "$install_prog $tstr"
exit