view lib-src/installexe.sh @ 1265:de6cf052e10b

[xemacs-hg @ 2003-02-07 00:49:41 by ben] add KKCC tail-recursion alloc.c: Implement tail-recursion in KKCC when the last-marked object is a Lisp object, to avoid stack-overflow errors when marking long lists. Factor out some duplicated error-checking into macros.
author ben
date Fri, 07 Feb 2003 00:49:42 +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