diff lib-src/installexe.sh @ 2940:3ee1c468b215

[xemacs-hg @ 2005-09-19 00:36:01 by mta] * configure.ac: Fix the cygwin, non-X build by adding XPM header and library files to XE_CFLAGS. Patch from Rick Rankin. * lib-src/installexe.sh: Don't add an exe extention to a file that already has one. Patch from Rick Rankin.
author mta
date Mon, 19 Sep 2005 00:36:05 +0000
parents 0784d089fdc9
children 8a653fbe5c27
line wrap: on
line diff
--- a/lib-src/installexe.sh	Sun Sep 18 21:51:11 2005 +0000
+++ b/lib-src/installexe.sh	Mon Sep 19 00:36:05 2005 +0000
@@ -5,11 +5,16 @@
 
 tstr=""
 
-while [ $# -gt 0 ]
+while [[ $# -gt 0 ]]
 do
-  if [ -f $1.exe ]
+  if [[ -f $1.exe ]]
   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 "