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