fileutils, install -- .exe file extension
Earnie Boyd
earnie_boyd@hotmail.com
Fri Sep 19 06:20:00 GMT 1997
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".
More information about the Cygwin
mailing list