projects
/
chise
/
xemacs-chise.git-
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply new glyph-image conventions for `cns11643-3'.
[chise/xemacs-chise.git-]
/
lib-src
/
installexe.sh
diff --git
a/lib-src/installexe.sh
b/lib-src/installexe.sh
index
2c1849a
..
1698125
100644
(file)
--- a/
lib-src/installexe.sh
+++ b/
lib-src/installexe.sh
@@
-1,14
+1,20
@@
-#!sh
+#!bash
install_prog=$1
shift
tstr=""
install_prog=$1
shift
tstr=""
-while [ $# -gt 0 ]
+
+while [[ $# -gt 0 ]]
do
do
- if [ -f $1.exe ]
+ if [[ -f $1.exe ]]
then
then
- tstr="$tstr$1.exe $2.exe"
+ if [[ "$2" == *.exe ]]
+ then
+ tstr="$tstr$1 $2"
+ else
+ tstr="$tstr$1.exe $2.exe"
+ fi
shift 2
else
tstr="$tstr$1 "
shift 2
else
tstr="$tstr$1 "