|
|
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
|
|
|
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 |
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jcomapi.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jdapimin.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jdapistd.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jdcoefct.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jdcolor.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jddctmgr.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jdhuff.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jdinput.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jdmainct.
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jdmarker.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jdmaster.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jdmerge.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jdphuff.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jdpostct.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jdsample.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jerror.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jidctflt.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jidctfst.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jidctint.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jidctred.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jmemmgr.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jmemnobs.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jquant1.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jquant2.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jutils.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jcapimin.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jcapistd.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jccoefct.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jccolor.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jcdctmgr.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jchuff.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jcinit.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jcmainct.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jcmarker.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jcmaster.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jcparam.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jcphuff.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jcprepct.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jcsample.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jctrans.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jdtrans.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jfdctflt.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jfdctfst.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/jfdctint.c
|
|
|
d557d5 |
rm -vf ${JPEG_SRC}/README
|
|
|
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 |
|