view lib-src/installexe.sh @ 1155:2e45c3beb9dc

[xemacs-hg @ 2002-12-12 03:22:50 by stephent] pdump for Linux <873cp37wik.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Thu, 12 Dec 2002 03:22:50 +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