dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] pnetlib/tools wrapper.sh.in, NONE, 1.1 .cvsignore,


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnetlib/tools wrapper.sh.in, NONE, 1.1 .cvsignore, 1.3, 1.4
Date: Wed, 26 Nov 2003 21:38:37 +0000

Update of /cvsroot/dotgnu-pnet/pnetlib/tools
In directory subversions:/tmp/cvs-serv12871/tools

Modified Files:
        .cvsignore 
Added Files:
        wrapper.sh.in 
Log Message:


Install the "csunit", "ilinstall", and "jsrun" executables in the
assembly cache, and replace the clrwrap redirect scripts with symlinks
to clrwrap.


--- NEW FILE: wrapper.sh.in ---
#!/bin/sh
#
# wrapper.sh - Create a clrwrap wrapper for an IL executable.
#
# Copyright (C) 2003  Southern Storm Software, Pty Ltd.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

# Usage: wrapper.sh $(DESTDIR)$(bindir)/foo$(EXEEXT)

# Variables that are substituted in by configure.
LN_S="@LN_S@"
CLRWRAP="@CLRWRAP@"
host="@host@"
INSTALL_AS_DEFAULT="@INSTALL_AS_DEFAULT@"

# Don't do anything if we aren't the default install version.
if test "x$INSTALL_AS_DEFAULT" = "xfalse" ; then
        exit 0
fi

# Determine whether we should use the Win32 or Unix wrapping mechanism.
case "$host" in
        *-*-mingw*|*-*-cygwin*)
                # Copy the "clrwrap" binary to the final location.
                if ! test -f "${CLRWRAP}" ; then
                        CLRWRAP="${CLRWRAP}.exe"
                fi
                echo rm -f "$1"
                rm -f "$1"
                echo cp "${CLRWRAP}" "$1"
                exec cp "${CLRWRAP}" "$1"
                ;;
        *)
                # Create a symbolic link from the name to "clrwrap".  We link
                # to "clrwrap" in the same directory, because $CLRWRAP points to
                # the build time "clrwrap", not the runtime version.
                echo rm -f "$1"
                rm -f "$1"
                echo $LN_S clrwrap "$1"
                exec $LN_S clrwrap "$1"
                ;;
esac
exit 0

Index: .cvsignore
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/tools/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** .cvsignore  12 Dec 2002 04:31:50 -0000      1.3
--- .cvsignore  26 Nov 2003 21:38:35 -0000      1.4
***************
*** 5,6 ****
--- 5,7 ----
  csccwrap.sh
  link_res.sh
+ wrapper.sh





reply via email to

[Prev in Thread] Current Thread [Next in Thread]