view lib-src/installexe.sh @ 765:a543dd3d410f

[xemacs-hg @ 2002-03-05 13:21:21 by stephent] <m3sn7fcm7w.fsf@mail.contactor.se> <q7u1yic5cj5.fsf@hw1020.wdf.sap-ag.de>
author stephent
date Tue, 05 Mar 2002 13:21:22 +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