|
|
9bf359 |
#!/bin/sh
|
|
|
9bf359 |
|
|
|
9bf359 |
ZIP_SRC=jdk8/jdk/src/share/native/java/util/zip/zlib-*
|
|
|
9bf359 |
JPEG_SRC=jdk8/jdk/src/share/native/sun/awt/image/jpeg
|
|
|
9bf359 |
GIF_SRC=jdk8/jdk/src/share/native/sun/awt/giflib
|
|
|
9bf359 |
PNG_SRC=jdk8/jdk/src/share/native/sun/awt/libpng
|
|
|
9bf359 |
LCMS_SRC=jdk8/jdk/src/share/native/sun/java2d/cmm/lcms
|
|
|
b8989a |
SUNEC_SRC=jdk8/jdk/src/share/native/sun/security/ec/impl
|
|
|
9bf359 |
|
|
|
9bf359 |
echo "Removing built-in libs (they will be linked)"
|
|
|
9bf359 |
|
|
|
9bf359 |
echo "Removing zlib"
|
|
|
9bf359 |
if [ ! -d ${ZIP_SRC} ]; then
|
|
|
9bf359 |
echo "${ZIP_SRC} does not exist. Refusing to proceed."
|
|
|
9bf359 |
exit 1
|
|
|
9bf359 |
fi
|
|
|
9bf359 |
rm -rvf ${ZIP_SRC}
|
|
|
9bf359 |
|
|
|
9bf359 |
echo "Removing libjpeg"
|
|
|
9bf359 |
if [ ! -f ${JPEG_SRC}/jdhuff.c ]; then # some file that sound definitely exist
|
|
|
9bf359 |
echo "${JPEG_SRC} does not contain jpeg sources. Refusing to proceed."
|
|
|
9bf359 |
exit 1
|
|
|
9bf359 |
fi
|
|
|
9bf359 |
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jcomapi.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jdapimin.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jdapistd.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jdcoefct.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jdcolor.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jdct.h
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jddctmgr.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jdhuff.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jdhuff.h
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jdinput.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jdmainct.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jdmarker.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jdmaster.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jdmerge.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jdphuff.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jdpostct.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jdsample.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jerror.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jerror.h
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jidctflt.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jidctfst.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jidctint.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jidctred.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jinclude.h
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jmemmgr.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jmemsys.h
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jmemnobs.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jmorecfg.h
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jpegint.h
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jpeglib.h
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jquant1.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jquant2.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jutils.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jcapimin.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jcapistd.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jccoefct.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jccolor.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jcdctmgr.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jchuff.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jchuff.h
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jcinit.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jconfig.h
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jcmainct.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jcmarker.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jcmaster.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jcparam.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jcphuff.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jcprepct.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jcsample.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jctrans.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jdtrans.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jfdctflt.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jfdctfst.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jfdctint.c
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/jversion.h
|
|
|
9bf359 |
rm -vf ${JPEG_SRC}/README
|
|
|
9bf359 |
|
|
|
9bf359 |
echo "Removing giflib"
|
|
|
9bf359 |
if [ ! -d ${GIF_SRC} ]; then
|
|
|
9bf359 |
echo "${GIF_SRC} does not exist. Refusing to proceed."
|
|
|
9bf359 |
exit 1
|
|
|
9bf359 |
fi
|
|
|
9bf359 |
rm -rvf ${GIF_SRC}
|
|
|
9bf359 |
|
|
|
9bf359 |
echo "Removing libpng"
|
|
|
9bf359 |
if [ ! -d ${PNG_SRC} ]; then
|
|
|
9bf359 |
echo "${PNG_SRC} does not exist. Refusing to proceed."
|
|
|
9bf359 |
exit 1
|
|
|
9bf359 |
fi
|
|
|
9bf359 |
rm -rvf ${PNG_SRC}
|
|
|
9bf359 |
|
|
|
9bf359 |
echo "Removing lcms"
|
|
|
9bf359 |
if [ ! -d ${LCMS_SRC} ]; then
|
|
|
9bf359 |
echo "${LCMS_SRC} does not exist. Refusing to proceed."
|
|
|
9bf359 |
exit 1
|
|
|
9bf359 |
fi
|
|
|
a9a030 |
# temporary change to move bundled LCMS
|
|
|
a9a030 |
if [ ! true ]; then
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmscam02.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmscgats.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmscnvrt.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmserr.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmsgamma.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmsgmt.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmshalf.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmsintrp.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmsio0.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmsio1.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmslut.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmsmd5.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmsmtrx.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmsnamed.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmsopt.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmspack.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmspcs.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmsplugin.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmsps2.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmssamp.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmssm.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmstypes.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmsvirt.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmswtpnt.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/cmsxform.c
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/lcms2.h
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/lcms2_internal.h
|
|
|
9bf359 |
rm -vf ${LCMS_SRC}/lcms2_plugin.h
|
|
|
a9a030 |
fi
|
|
|
b8989a |
|
|
|
b8989a |
echo "Removing SunEC sources"
|
|
|
b8989a |
if [ ! -d ${SUNEC_SRC} ]; then
|
|
|
b8989a |
echo "${SUNEC_SRC} does not exist. Refusing to proceed."
|
|
|
b8989a |
exit 1
|
|
|
b8989a |
fi
|
|
|
b8989a |
rm -rvf ${SUNEC_SRC}
|