Blame SOURCES/remove-intree-libraries.sh

404409
#!/bin/sh
404409
404409
ZIP_SRC=openjdk/jdk/src/share/native/java/util/zip/zlib
404409
JPEG_SRC=openjdk/jdk/src/share/native/sun/awt/image/jpeg/jpeg-6b
404409
GIF_SRC=openjdk/jdk/src/share/native/sun/awt/giflib
404409
PNG_SRC=openjdk/jdk/src/share/native/sun/awt/libpng
404409
LCMS_SRC=openjdk/jdk/src/share/native/sun/java2d/cmm/lcms
404409
PCSC_SRC=openjdk/jdk/src/solaris/native/sun/security/smartcardio/MUSCLE
404409
404409
echo "Removing built-in libs (they will be linked)"
404409
404409
echo "Removing zlib"
404409
if [ ! -d ${ZIP_SRC} ]; then
404409
	echo "${ZIP_SRC} does not exist. Refusing to proceed."
404409
	exit 1
404409
fi	
404409
rm -rvf ${ZIP_SRC}
404409
404409
echo "Removing libjpeg"
404409
if [ ! -f ${JPEG_SRC}/jdhuff.c ]; then # some file that sound definitely exist
404409
	echo "${JPEG_SRC} does not contain jpeg sources. Refusing to proceed."
404409
	exit 1
404409
fi	
404409
404409
rm -rvf ${JPEG_SRC}
404409
404409
echo "Removing giflib"
404409
if [ ! -d ${GIF_SRC} ]; then
404409
	echo "${GIF_SRC} does not exist. Refusing to proceed."
404409
	exit 1
404409
fi	
404409
rm -rvf ${GIF_SRC}
404409
404409
echo "Removing libpng"
404409
if [ ! -d ${PNG_SRC} ]; then
404409
	echo "${PNG_SRC} does not exist. Refusing to proceed."
404409
	exit 1
404409
fi	
404409
rm -rvf ${PNG_SRC}
404409
404409
# LCMS 2 is disabled until security issues are resolved
404409
if [ ! true ]; then
404409
echo "Removing lcms"
404409
if [ ! -d ${LCMS_SRC} ]; then
404409
	echo "${LCMS_SRC} does not exist. Refusing to proceed."
404409
	exit 1
404409
fi	
404409
rm -vf ${LCMS_SRC}/cmscam02.c
404409
rm -vf ${LCMS_SRC}/cmscgats.c
404409
rm -vf ${LCMS_SRC}/cmscnvrt.c
404409
rm -vf ${LCMS_SRC}/cmserr.c
404409
rm -vf ${LCMS_SRC}/cmsgamma.c
404409
rm -vf ${LCMS_SRC}/cmsgmt.c
404409
rm -vf ${LCMS_SRC}/cmsintrp.c
404409
rm -vf ${LCMS_SRC}/cmsio0.c
404409
rm -vf ${LCMS_SRC}/cmsio1.c
404409
rm -vf ${LCMS_SRC}/cmslut.c
404409
rm -vf ${LCMS_SRC}/cmsmd5.c
404409
rm -vf ${LCMS_SRC}/cmsmtrx.c
404409
rm -vf ${LCMS_SRC}/cmsnamed.c
404409
rm -vf ${LCMS_SRC}/cmsopt.c
404409
rm -vf ${LCMS_SRC}/cmspack.c
404409
rm -vf ${LCMS_SRC}/cmspcs.c
404409
rm -vf ${LCMS_SRC}/cmsplugin.c
404409
rm -vf ${LCMS_SRC}/cmsps2.c
404409
rm -vf ${LCMS_SRC}/cmssamp.c
404409
rm -vf ${LCMS_SRC}/cmssm.c
404409
rm -vf ${LCMS_SRC}/cmstypes.c
404409
rm -vf ${LCMS_SRC}/cmsvirt.c
404409
rm -vf ${LCMS_SRC}/cmswtpnt.c
404409
rm -vf ${LCMS_SRC}/cmsxform.c
404409
rm -vf ${LCMS_SRC}/lcms2.h
404409
rm -vf ${LCMS_SRC}/lcms2_internal.h
404409
rm -vf ${LCMS_SRC}/lcms2_plugin.h
404409
fi
404409
404409
echo "Removing libpcsc headers"
404409
if [ ! -d ${PCSC_SRC} ]; then
404409
	echo "${PCSC_SRC} does not exist. Refusing to proceed."
404409
	exit 1
404409
fi	
404409
rm -rvf ${PCSC_SRC}