#
# Copyright 03 Sep 1993 Sun Microsystems, Inc.  All Rights Reserved.
#
# @(#)preinstall 1.1 93/09/03 SMI
#
# preinstall script for SC3.0 SPROlang
#
# SC2.0.1 FCS man3/ man page symlinks being deleted
#
deleted_201_3="decimal_to_floating.3 econvert.3 fcvt.3 floating_to_decimal.3
	floatingpoint.3 gcvt.3 printf.3v scanf.3v sigfpe.3 string_to_decimal.3
	HUGE.3m HUGE_VAL.3m acos.3m acosh.3m asin.3m asinh.3m atan.3m atan2.3m
	atanh.3m bessel.3m cabs.3m cbrt.3m ceil.3m class.3m copysign.3m cos.3m
	cosh.3m erf.3m erfc.3m exp.3m expm1.3m fabs.3m finite.3m floor.3m
	fmod.3m gamma.3m hyperbolic.3m hypot.3m ieee_functions.3m ieee_test.3m
	ilogb.3m isnan.3m j0.3m j1.3m jn.3m lgamma.3m list.3m log.3m log10.3m
	log1p.3m logb.3m matherr.3m nextafter.3m pow.3m remainder.3m rint.3m
	scalb.3m scalbn.3m significand.3m sin.3m sinh.3m sqrt.3m tan.3m tanh.3m
	trig.3m y0.3m y1.3m yn.3m"
deleted_201_5=math.5
#
# EA3.0 man3/ man pages being relocated to man3m/; specifically,
#
# renamed_201_3: the list of SC2.0.1 man3/ man pages being relocated to man3m/
# renamed_30a_3: the list of EA3.0   man3/ man pages being relocated to man3m/
#
renamed_201_3="addrans.3m aint.3m anint.3m convert_external.3m exp10.3m exp2.3m
	fp_class.3m ieee_flags.3m ieee_handler.3m ieee_values.3m infinity.3m
	irint.3m isinf.3m isnormal.3m issubnormal.3m iszero.3m lcrans.3m
	log2.3m max_normal.3m max_subnormal.3m min_normal.3m min_subnormal.3m
	nint.3m quad_precision.3m quiet_nan.3m shufrans.3m signaling_nan.3m
	signbit.3m single_precision.3m"
renamed_30a_3="acosd.3m acosp.3m acospi.3m annuity.3m asind.3m asinp.3m
	asinpi.3m atan2d.3m atan2pi.3m atand.3m atanp.3m atanpi.3m compound.3m
	cosd.3m cosp.3m cospi.3m ieee_retrospective.3m ieee_sun.3m
	nonstandard_arithmetic.3m sincos.3m sincosd.3m sincosp.3m sincospi.3m
	sind.3m sinp.3m sinpi.3m standard_arithmetic.3m tand.3m tanp.3m
	tanpi.3m trig_sun.3m"
#
# symlinks first
#
dir=${BASEDIR}/SUNWspro/man
if [ -d ${dir} ]; then
	if [ -d ${dir}/man3 ]; then
		cd ${dir}/man3; rm -f ${deleted_201_3}
	fi
	if [ -d ${dir}/cat3 ]; then
		cd ${dir}/cat3; rm -f ${deleted_201_3}
	fi
	if [ -d ${dir}/man5 ]; then
		cd ${dir}/man5; rm -f ${deleted_201_5}
	fi
	if [ -d ${dir}/cat5 ]; then
		cd ${dir}/cat5; rm -f ${deleted_201_5}
	fi
	rm -f ${dir}/windex
fi
#
# EA3.0 cleanups
#
dir=${BASEDIR}/SUNWspro/${PRODVERS}/man
if [ -d ${dir} ]; then
	if [ -d ${dir}/man3 ]; then
		cd ${dir}/man3; rm -f ${renamed_201_3} ${renamed_30a_3}
	fi
	if [ -d ${dir}/cat3 ]; then
		cd ${dir}/cat3; rm -f ${renamed_201_3} ${renamed_30a_3}
	fi
	rm -f ${dir}/windex
fi
