view lib-src/installexe.sh @ 4459:554b9d31e7a5

Handle printing correctly on non-mswindows. 2008-05-13 Aidan Kehoe <kehoea@parhasard.net> * printer.el (generic-print-region): (generic-print-buffer): Use #'valid-device-type-p instead of #'valid-specifier-tag-p to check if the msprinter device is available, now that msprinter is always available as a specifier tag.
author Aidan Kehoe <kehoea@parhasard.net>
date Tue, 13 May 2008 14:56:38 +0200
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