XEmacs 21.2-b1
[chise/xemacs-chise.git.1] / lib-src / installexe.sh
diff --git a/lib-src/installexe.sh b/lib-src/installexe.sh
new file mode 100644 (file)
index 0000000..2c1849a
--- /dev/null
@@ -0,0 +1,21 @@
+#!sh
+
+install_prog=$1
+shift
+
+tstr=""
+while [ $# -gt 0 ]
+do
+  if [ -f $1.exe ]
+  then
+    tstr="$tstr$1.exe $2.exe"
+    shift 2
+  else
+    tstr="$tstr$1 "
+  fi
+  shift
+done
+echo "$install_prog $tstr"
+eval "$install_prog $tstr"
+exit
+