view lib-src/installexe.sh @ 1678:2422c1cd1afd

[xemacs-hg @ 2003-09-12 02:02:06 by james] Andrew Begel's patch to make modules build correctly on MacOS X.
author james
date Fri, 12 Sep 2003 02:02:07 +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