view lib-src/installexe.sh @ 4547:ab9e8f0fb295

Check absolute source file names against DOC with #'file-newer-than-file-p. 2008-12-30 Aidan Kehoe <kehoea@parhasard.net> * make-docfile.el: Use absolute source file names when checking if DOC is out of date, don't use relative paths that may not be related to the current directory.
author Aidan Kehoe <kehoea@parhasard.net>
date Tue, 30 Dec 2008 16:09:59 +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