head	1.4;
access;
symbols
	RELEASE_8_3_0:1.4
	RELEASE_9_0_0:1.4
	RELEASE_7_4_0:1.4
	RELEASE_8_2_0:1.4
	RELEASE_6_EOL:1.4
	RELEASE_8_1_0:1.4
	RELEASE_7_3_0:1.4
	RELEASE_8_0_0:1.4
	RELEASE_7_2_0:1.4
	RELEASE_7_1_0:1.4
	RELEASE_6_4_0:1.4
	RELEASE_5_EOL:1.4
	RELEASE_7_0_0:1.4
	RELEASE_6_3_0:1.4
	PRE_XORG_7:1.4
	RELEASE_4_EOL:1.3
	RELEASE_6_2_0:1.3
	RELEASE_6_1_0:1.3
	RELEASE_5_5_0:1.3
	RELEASE_6_0_0:1.3
	RELEASE_5_4_0:1.3
	RELEASE_4_11_0:1.2
	RELEASE_5_3_0:1.2
	RELEASE_4_10_0:1.2
	RELEASE_5_2_1:1.2
	RELEASE_5_2_0:1.2
	RELEASE_4_9_0:1.2
	RELEASE_5_1_0:1.1
	RELEASE_4_8_0:1.1
	RELEASE_5_0_0:1.1
	RELEASE_4_7_0:1.1
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	RELEASE_4_6_0:1.1
	RELEASE_5_0_DP1:1.1;
locks; strict;
comment	@# @;


1.4
date	2007.04.19.15.11.51;	author rafan;	state Exp;
branches;
next	1.3;

1.3
date	2005.02.23.06.45.30;	author leeym;	state Exp;
branches;
next	1.2;

1.2
date	2003.06.27.08.37.17;	author leeym;	state Exp;
branches;
next	1.1;

1.1
date	2002.03.31.09.37.45;	author clive;	state Exp;
branches;
next	;


desc
@@


1.4
log
@- Use kpsewhich to find correct dvips's config
@
text
@#!/bin/sh

# Run just once.
if [ "x$2" != "xDEINSTALL" ]; then
  exit 0
fi

PSFONTSMAP=`kpsewhich -format 'dvips config' config.ps`

if [ -f "${PSFONTSMAP}" ]; then
  # Edit dvips/config/config.ps
  sed -e /%cwtex_begin/,/%cwtex_end/d $PSFONTSMAP > $PSFONTSMAP.tmp
  if [ -s "$PSFONTSMAP.tmp" ]; then
    mv $PSFONTSMAP.tmp $PSFONTSMAP
  else
    rm $PSFONTSMAP.tmp $PSFONTSMAP
  fi
fi
@


1.3
log
@- fix PLIST, remove the entries left after deinstalling
@
text
@d8 1
a8 2
TEXMFMAIN=`kpsexpand '$TEXMFMAIN'`
PSFONTSMAP=${TEXMFMAIN}/dvips/config/config.ps
d10 8
a17 6
# Edit dvips/config/config.ps
sed -e /%cwtex_begin/,/%cwtex_end/d $PSFONTSMAP > $PSFONTSMAP.tmp
if [ -s "$PSFONTSMAP.tmp" ]; then
  mv $PSFONTSMAP.tmp $PSFONTSMAP
else
  rm $PSFONTSMAP.tmp $PSFONTSMAP
@


1.2
log
@o due to teTeX update to 2.0.2, update pkg-plist
o move mktexlsr to end of pkg-plist

PR:		53644
Submitted by:	Statue <statue@@freebsd.sinica.edu.tw>
@
text
@d13 5
a17 1
mv -f $PSFONTSMAP.tmp $PSFONTSMAP
@


1.1
log
@New port: cwTeX

cwTeX is a famous TeX/LaTeX derivative in Taiwan, which runs on
MS-DOS, Windows, Linux, and now on FreeBSD.

Of course, cwTeX is subject to process Chinese character gracefully.

PR:	ports/36567
Submitted by:	Statue <statue@@softwareliberty.org>
@
text
@a13 3

# Update ls-R.
mktexlsr
@

