head	1.6;
access;
symbols
	RELEASE_4_3_0:1.5
	RELEASE_4_2_0:1.5
	RELEASE_4_1_1:1.5
	RELEASE_4_1_0:1.5
	RELEASE_3_5_0:1.5
	RELEASE_4_0_0:1.5
	RELEASE_3_4_0:1.5
	RELEASE_3_3_0:1.5
	RELEASE_3_2_0:1.4
	RELEASE_3_1_0:1.4
	RELEASE_2_2_8:1.3
	RELEASE_3_0_0:1.3
	RELEASE_2_2_7:1.3
	RELEASE_2_2_6:1.3
	RELEASE_2_2_5:1.3
	RELEASE_2_2_1:1.3
	RELEASE_2_2_2:1.3
	JDP_3_5_3:1.1.1.1
	JDP:1.1.1;
locks; strict;
comment	@# @;


1.6
date	2001.07.21.23.41.35;	author jdp;	state dead;
branches;
next	1.5;

1.5
date	99.08.30.12.01.08;	author peter;	state Exp;
branches;
next	1.4;

1.4
date	99.01.28.05.39.19;	author jdp;	state Exp;
branches;
next	1.3;

1.3
date	96.10.29.23.17.19;	author jdp;	state Exp;
branches;
next	1.2;

1.2
date	96.09.10.05.25.10;	author jdp;	state Exp;
branches;
next	1.1;

1.1
date	96.03.20.22.10.19;	author jdp;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.03.20.22.10.19;	author jdp;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Remove the old modula-3 and modula-3-lib ports.  They are superseded
by the pm3-* family of ports, which build a newer and better-maintained
version of Modula-3.  I have converted all ports which depended on
modula-3 to use pm3-* instead.

PR:		ports/27664 is rendered irrelevant
@
text
@#! /bin/sh
#
# $FreeBSD: ports/lang/modula-3/scripts/fix_pathnames,v 1.5 1999/08/30 12:01:08 peter Exp $

umask 022

if [ $# -ne 2 ]; then
    echo "Usage: $0 oldpath newpath" >&2
    exit 1
fi

oldpath=$1
newpath=$2
pkgdir=lib/m3/pkg

# Fix absolute pathnames in files so that they reference the actual
# installation directory, instead of the temporary directory we have
# been using.

cd ${newpath}/${pkgdir}
for i in `cd ${oldpath}/${pkgdir}; \
  find . -type f \( -name .M3IMPTAB -o -name FreeBSD2 \)`; do
    if [ -f ${i} ]; then
	test -f ${i}.bak || cp -p ${i} ${i}.bak
	rm -f ${i}
	sed -e "s|/[^ 	]*/work/installed/|${newpath}/|g" ${i}.bak >${i} && \
	  rm -f ${i}.bak
    fi
done
@


1.5
log
@$Id$ -> $FreeBSD$
@
text
@d3 1
a3 1
# $FreeBSD$
@


1.4
log
@Instead of trying to auto-detect whether X11 is installed, require
the user to define NO_X11 if it is not.  The auto-detection scheme
caused problems for Satoshi's port building system.
@
text
@d3 1
a3 1
# $Id: fix_pathnames,v 1.3 1996/10/29 23:17:19 jdp Exp $
@


1.3
log
@Split this port into two pieces, with most of the work now being done by
the new "modula-3-lib" port.  The split allows one to save a lot of
disk space by installing only the shared libraries needed for executing
programs.  The full "modula-3" port is needed only if you want to
compile programs as well.
@
text
@d3 1
a3 1
# $Id: fix_pathnames,v 1.2 1996/09/10 05:25:10 jdp Exp $
d23 6
a28 4
    test -f ${i}.bak || cp -p ${i} ${i}.bak
    rm -f ${i}
    sed -e "s|/[^ 	]*/work/installed/|${newpath}/|g" ${i}.bak >${i} && \
      rm -f ${i}.bak
@


1.2
log
@Update the Modula-3 port with two main goals in mind.

First, change the port so that it builds a much smaller subset of
the SRC distribution.  This eliminates the enormous swap space
requirements of the earlier port, greatly reduces the footprint of
the installed tree, and cuts the size of the package in half.

Second, include many important new patches.  Among them is a slightly
modified version of phkmalloc that is thread-safe for Modula-3.
It eradicates some rare and baffling core dumps that cropped up
from time to time in the previous version of the port.  The Modula-3
runtime itself is careful to use mutual exclusion around calls to
malloc.  But there remained some sneaky backdoor paths into it from
external libraries.

Confession: In the original version of the Modula-3 port, I used
a major version number of 353 for the shared libraries, to correspond
with the SRC version number 3.5.3.  That was a dumb move -- I should
have used 1.  The current update is incompatible at the shared
library level, requiring me to increment the major version number
to 354, even though this is still based on SRC release 3.5.3.  This
is bound to confuse some folks, unfortunately.  I weighed a number
of alternatives, such as (a) cheating and going back to 1, and (b)
using a 4-digit major version such as 3531.  But in the end I
decided that 354 would be the best solution, even though it's
confusing.
@
text
@d3 1
a3 1
# $Id: fix_pathnames,v 1.1.1.1 1996/03/20 22:10:19 jdp Exp $
a13 1

d16 3
a18 9
t1=/tmp/fixpaths$$a
trap "rm -f $t1" 0 1 2 3 15
touch -f $t1
chmod 600 $t1

# Fix absolute pathnames in files.

cd ${oldpath}/${pkgdir}
find . -type f \( -name .M3IMPTAB -o -name FreeBSD2 \) >${t1}
d21 2
a22 1
for i in `cat ${t1}`; do
d25 2
a26 1
    sed -e "s|${oldpath}|${newpath}|g" ${i}.bak >${i} && rm -f ${i}.bak
a27 11

# Fix absolute symbolic links.

cd ${oldpath}
find . -type l -ls | \
    sed -e \
    "s|^.* \([^ ][^ ]*\) -> ${oldpath}/\([^ ]*\)|ln -sf ${newpath}/\2 \1|" \
    >${t1}

cd ${newpath}
. ${t1}
@


1.1
log
@Initial revision
@
text
@d3 3
a5 1
# $Id$
@


1.1.1.1
log
@Modula-3 language system from DEC Systems Research Center.
@
text
@@
