delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/09/19/06:42:44

From: earnie_boyd AT hotmail DOT com (Earnie Boyd)
Subject: Re: fileutils, install -- .exe file extension
19 Sep 1997 06:42:44 -0700 :
Message-ID: <19970919131936.1925.qmail.cygnus.gnu-win32@hotmail.com>
To: gnu-win32 AT cygnus DOT com

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 AT usa DOT 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 AT hotmail DOT 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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019