view lib-src/installexe.sh @ 1448:5b0af12cd2f1

[xemacs-hg @ 2003-05-02 23:12:16 by youngs] 2003-05-03 Steve Youngs <youngs@xemacs.org> * package-index.LATEST.gpg: Updated to current reality. * package-index.LATEST.pgp: Removed, 21.5 uses 'package-index.LATEST.gpg'.
author youngs
date Fri, 02 May 2003 23:12: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