view lib-src/installexe.sh @ 876:890f3cafe600

[xemacs-hg @ 2002-06-23 09:25:11 by stephent] unbreak GTK build <m1wusq8qgd.fsf@co3018576-a.rivrw1.nsw.optushome.com.au>
author stephent
date Sun, 23 Jun 2002 09:26:37 +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