view lib-src/installexe.sh @ 1832:5d8dcaecc32b

[xemacs-hg @ 2003-12-19 11:24:58 by youngs] 2003-12-15 Steve Youngs <sryoungs@bigpond.net.au> * package-get.el (package-get-list-packages-where): New. A function that allows searching for groups of packages. For example, find all packages that require the fsf-compat package.
author youngs
date Fri, 19 Dec 2003 11:24:59 +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