view lib-src/installexe.sh @ 4325:948c9b232595

Avoid an error when clicking on Help -> Tutorials APPROVE COMMIT This is the patch of 18270.32449.777332.204409@parhasard.net , with slightly different line numbers. lisp/ChangeLog addition: 2007-12-11 Aidan Kehoe <kehoea@parhasard.net> * mule/latin.el : Specify tutorial-coding-system using dotted cons notation, since it's not a list. Prevents an error in help-with-tutorial for these languages.
author Aidan Kehoe <kehoea@parhasard.net>
date Tue, 11 Dec 2007 21:56:18 +0100
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