view lib-src/installexe.sh @ 4576:774e5c7522bf

Preserve the relation btw. file-name-coding-system & the 'file-name c-s alias. lisp/ChangeLog addition: 2009-01-13 Aidan Kehoe <kehoea@parhasard.net> * mule/mule-cmds.el (set-language-environment-coding-systems): Fix a cosmetic bug; the relationship between file-name-coding-system and the file-name coding system alias established in coding.el wasn't being maintained. See Katsumi Yamaoka's comment in http://mid.gmane.org/b4m4p03bt43.fsf@jpl.org .
author Aidan Kehoe <kehoea@parhasard.net>
date Tue, 13 Jan 2009 12:07:27 +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