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