view lib-src/installexe.sh @ 4173:03f6627a2e09

[xemacs-hg @ 2007-09-18 02:55:29 by james] Release XftFont resources. See xemacs-patches message <870180fe0709151610s3618b854y1f845489d4723f00@mail.gmail.com>.
author james
date Tue, 18 Sep 2007 02:55:29 +0000
parents 3ee1c468b215
children 8a653fbe5c27
line wrap: on
line source

#!bash

install_prog=$1
shift

tstr=""

while [[ $# -gt 0 ]]
do
  if [[ -f $1.exe ]]
  then
    if [[ "$2" == *.exe ]]
    then
      tstr="$tstr$1 $2"
    else
      tstr="$tstr$1.exe $2.exe"
    fi
    shift 2
  else
    tstr="$tstr$1 "
  fi
  shift
done
echo "$install_prog $tstr"
eval "$install_prog $tstr"
exit