public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* fileutils, install -- .exe file extension
@ 1997-09-17 11:41 Earnie Boyd
  0 siblings, 0 replies; 2+ messages in thread
From: Earnie Boyd @ 1997-09-17 11:41 UTC (permalink / raw)
  To: Sergey Okhapkin; +Cc: gnu-win32

Is there some script or fix for install not being able to operate on the
.exe named file when given just the basename.

A suggestion I have would be to let bash expand filenames given as
parameters before being passed to the called program.  Switches and
environment variables could be set to allow the expanded names to contain
either the forward slash path notation (default this way) or the back
slash notation.

 \|-----------|/    eaboyd@freenet.columbus.oh.us
--|Earnie Boyd|--       ** text only please **
 /|-----------|\




-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: fileutils, install -- .exe file extension
@ 1997-09-19  6:20 Earnie Boyd
  0 siblings, 0 replies; 2+ messages in thread
From: Earnie Boyd @ 1997-09-19  6:20 UTC (permalink / raw)
  To: gnu-win32

I have used the following script for installing packages with the "make 
install" command.

The way this is written, if the file.exe exists in the destination then 
the script will force the .exe onto the destination file.  Otherwise the 
destination ends up without the .exe.

This is fine for what I am doing as I will never execute these commands 
unless I am in bash.

#!/bin/sh
# file: install
# author: earnie      email: earnie@usa.net
# Install Preprocessor for the gnu-win32 "make install" command.
#
# To use:
#    mv /bin/install.exe /bin/ginstall
#   copy this file to /bin/install
#
# Note:
#   No warranty implicit or explicit is given.
#   You may copy, distribute and use as you see fit.
#   USE AT YOU OWN RISK.
#
tstr=""
while test $# -gt 0; do \
   if test -e $1.exe; then \
       tstr="$tstr$1.exe "; else \
       tstr="$tstr$1 "; \
   fi; \
   shift; \
done
echo "/bin/ginstall $tstr"
eval "/bin/ginstall $tstr"; \
exit



         \\||//
---o0O0--Earnie--0O0o---

earnie_boyd@hotmail.com


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-09-19  6:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-17 11:41 fileutils, install -- .exe file extension Earnie Boyd
1997-09-19  6:20 Earnie Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).