view lib-src/installexe.sh @ 705:47f5192d44c9

[xemacs-hg @ 2001-12-18 22:55:29 by adrian] [PATCH APPROVE COMMIT RECOMMEND 21.4] xemacs-21.5: More .../.cvsignore improvements <r8psta0u.fsf@mailto.t-online.de>
author adrian
date Tue, 18 Dec 2001 22:57:02 +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