head	1.5;
access;
symbols
	pkgsrc-2013Q2:1.5.0.54
	pkgsrc-2013Q2-base:1.5
	pkgsrc-2012Q4:1.5.0.52
	pkgsrc-2012Q4-base:1.5
	pkgsrc-2011Q4:1.5.0.50
	pkgsrc-2011Q4-base:1.5
	pkgsrc-2011Q2:1.5.0.48
	pkgsrc-2011Q2-base:1.5
	pkgsrc-2009Q4:1.5.0.46
	pkgsrc-2009Q4-base:1.5
	pkgsrc-2008Q4:1.5.0.44
	pkgsrc-2008Q4-base:1.5
	pkgsrc-2008Q3:1.5.0.42
	pkgsrc-2008Q3-base:1.5
	cube-native-xorg:1.5.0.40
	cube-native-xorg-base:1.5
	pkgsrc-2008Q2:1.5.0.38
	pkgsrc-2008Q2-base:1.5
	pkgsrc-2008Q1:1.5.0.36
	pkgsrc-2008Q1-base:1.5
	pkgsrc-2007Q4:1.5.0.34
	pkgsrc-2007Q4-base:1.5
	pkgsrc-2007Q3:1.5.0.32
	pkgsrc-2007Q3-base:1.5
	pkgsrc-2007Q2:1.5.0.30
	pkgsrc-2007Q2-base:1.5
	pkgsrc-2007Q1:1.5.0.28
	pkgsrc-2007Q1-base:1.5
	pkgsrc-2006Q4:1.5.0.26
	pkgsrc-2006Q4-base:1.5
	pkgsrc-2006Q3:1.5.0.24
	pkgsrc-2006Q3-base:1.5
	pkgsrc-2006Q2:1.5.0.22
	pkgsrc-2006Q2-base:1.5
	pkgsrc-2006Q1:1.5.0.20
	pkgsrc-2006Q1-base:1.5
	pkgsrc-2005Q4:1.5.0.18
	pkgsrc-2005Q4-base:1.5
	pkgsrc-2005Q3:1.5.0.16
	pkgsrc-2005Q3-base:1.5
	pkgsrc-2005Q2:1.5.0.14
	pkgsrc-2005Q2-base:1.5
	pkgsrc-2005Q1:1.5.0.12
	pkgsrc-2005Q1-base:1.5
	pkgsrc-2004Q4:1.5.0.10
	pkgsrc-2004Q4-base:1.5
	pkgsrc-2004Q3:1.5.0.8
	pkgsrc-2004Q3-base:1.5
	pkgsrc-2004Q2:1.5.0.6
	pkgsrc-2004Q2-base:1.5
	pkgsrc-2004Q1:1.5.0.4
	pkgsrc-2004Q1-base:1.5
	pkgsrc-2003Q4:1.5.0.2
	pkgsrc-2003Q4-base:1.5
	netbsd-1-6-1:1.3.0.2
	netbsd-1-6-1-base:1.3
	netbsd-1-6:1.2.0.8
	netbsd-1-6-RELEASE-base:1.2
	pkgviews:1.2.0.4
	pkgviews-base:1.2
	buildlink2:1.2.0.2
	buildlink2-base:1.2
	netbsd-1-5-PATCH003:1.2;
locks; strict;
comment	@# @;


1.5
date	2003.07.06.14.28.35;	author seb;	state dead;
branches;
next	1.4;

1.4
date	2003.03.28.21.24.24;	author wiz;	state Exp;
branches;
next	1.3;

1.3
date	2002.09.27.12.28.15;	author jlam;	state Exp;
branches;
next	1.2;

1.2
date	2002.01.05.02.20.01;	author fredb;	state Exp;
branches;
next	1.1;

1.1
date	2001.12.29.17.41.45;	author fredb;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Ooops I missed this INSTALL script while doing the conversion
to USE_NEW_TEXINFO (I should have added it to INSTALL_TEMPLATES).

Anyway as info files are now registered in a package specific info
directory file I guess it can be removed.
@
text
@#!/bin/sh
#
# Previous versions of the "gcc" package would install a corrupted
# info entry for "chill", which would foil subsequent installations.
# This script attempts to clean up that entry.

case ${STAGE} in
PRE-INSTALL)
	if [ ! -w "${PKG_PREFIX}/info/dir" ]; then
		exit 1
	fi
	if [ -x /bin/ed ]; then
		${ECHO} "Fixing up info/dir from previous installation..."
		/bin/ed "${PKG_PREFIX}/info/dir" 2> /dev/null << END
/^* Chill/d
w
q
END
		if [ $? -eq 0 ]; then
			${ECHO} "...fixed."
		else
			${ECHO} "...nothing to fix."
		fi
	fi
	;;
esac
@


1.4
log
@Remove unnecessary empty lines.
@
text
@@


1.3
log
@Use bsd.pkg.install.mk, correct the PLISTs to refer to ${PKGNAME}.mk
(instead of hardcoding the version number), and general cleanups to the
Makefile to make this package easier to maintain.
@
text
@a26 1

@


1.2
log
@Add missing command.
@
text
@d3 1
a3 1
# Prior versions of the "gcc" package would install a corrupted
d7 8
a14 20
if [ $# -ne 2 -o ! -d "${PKG_PREFIX}" -o ! -w "${PKG_PREFIX}/info/dir" ]
# Script was called improperly.
then
    exit 1
fi

if [ "$2" != "PRE-INSTALL" ]
# No problem
then
    exit 0
fi

if [ ! -x /bin/ed ]
# Who knows? Give up.
then
    exit 0
fi

echo Fixing up infodir from previous installation\.\.\.
/bin/ed "${PKG_PREFIX}/info/dir" 2> /dev/null << END
d19 9
a27 7
if [ $? -eq 0 ]
then
    echo \.\.\.fixed\.
    exit 0
fi
echo \.\.\.nothing to fix\.
exit 0
@


1.1
log
@Fix up a corrupt infodir entry in "chill.info" that install-info could not
delete cleanly, which foiled subsequent installations, and add an INSTALL
script (keyword PRE-INSTALL) to ensure that the corrupt entry is removed.
@
text
@d33 1
a33 1
    \.\.\.fixed\.
@

