/[packages]/backports/8/java-latest-openjdk/current/SOURCES/remove-intree-libraries.sh
ViewVC logotype

Contents of /backports/8/java-latest-openjdk/current/SOURCES/remove-intree-libraries.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1760752 - (show annotations) (download) (as text)
Sat Dec 4 23:35:46 2021 UTC (2 years, 10 months ago) by neoclust
File MIME type: application/x-sh
File size: 4166 byte(s)
New version 16.0.2+7
1 #!/bin/sh
2
3 # Arguments: <JDK TREE> <MINIMAL|FULL>
4 TREE=${1}
5 TYPE=${2}
6
7 ZIP_SRC=src/java.base/share/native/libzip/zlib/
8 JPEG_SRC=src/java.desktop/share/native/libjavajpeg/
9 GIF_SRC=src/java.desktop/share/native/libsplashscreen/giflib/
10 PNG_SRC=src/java.desktop/share/native/libsplashscreen/libpng/
11 LCMS_SRC=src/java.desktop/share/native/liblcms/
12
13 if test "x${TREE}" = "x"; then
14 echo "$0 <JDK_TREE> (MINIMAL|FULL)";
15 exit 1;
16 fi
17
18 if test "x${TYPE}" = "x"; then
19 TYPE=minimal;
20 fi
21
22 if test "x${TYPE}" != "xminimal" -a "x${TYPE}" != "xfull"; then
23 echo "Type must be minimal or full";
24 exit 2;
25 fi
26
27 echo "Removing in-tree libraries from ${TREE}"
28 echo "Cleansing operation: ${TYPE}";
29
30 cd ${TREE}
31
32 echo "Removing built-in libs (they will be linked)"
33
34 # On full runs, allow for zlib having already been deleted by minimal
35 echo "Removing zlib"
36 if [ "x${TYPE}" = "xminimal" -a ! -d ${ZIP_SRC} ]; then
37 echo "${ZIP_SRC} does not exist. Refusing to proceed."
38 exit 1
39 fi
40 rm -rvf ${ZIP_SRC}
41
42 # Minimal is limited to just zlib so finish here
43 if test "x${TYPE}" = "xminimal"; then
44 echo "Finished.";
45 exit 0;
46 fi
47
48 echo "Removing libjpeg"
49 if [ ! -f ${JPEG_SRC}/jdhuff.c ]; then # some file that should definitely exist
50 echo "${JPEG_SRC} does not contain jpeg sources. Refusing to proceed."
51 exit 1
52 fi
53
54 rm -vf ${JPEG_SRC}/jcomapi.c
55 rm -vf ${JPEG_SRC}/jdapimin.c
56 rm -vf ${JPEG_SRC}/jdapistd.c
57 rm -vf ${JPEG_SRC}/jdcoefct.c
58 rm -vf ${JPEG_SRC}/jdcolor.c
59 rm -vf ${JPEG_SRC}/jdct.h
60 rm -vf ${JPEG_SRC}/jddctmgr.c
61 rm -vf ${JPEG_SRC}/jdhuff.c
62 rm -vf ${JPEG_SRC}/jdhuff.h
63 rm -vf ${JPEG_SRC}/jdinput.c
64 rm -vf ${JPEG_SRC}/jdmainct.c
65 rm -vf ${JPEG_SRC}/jdmarker.c
66 rm -vf ${JPEG_SRC}/jdmaster.c
67 rm -vf ${JPEG_SRC}/jdmerge.c
68 rm -vf ${JPEG_SRC}/jdphuff.c
69 rm -vf ${JPEG_SRC}/jdpostct.c
70 rm -vf ${JPEG_SRC}/jdsample.c
71 rm -vf ${JPEG_SRC}/jerror.c
72 rm -vf ${JPEG_SRC}/jerror.h
73 rm -vf ${JPEG_SRC}/jidctflt.c
74 rm -vf ${JPEG_SRC}/jidctfst.c
75 rm -vf ${JPEG_SRC}/jidctint.c
76 rm -vf ${JPEG_SRC}/jidctred.c
77 rm -vf ${JPEG_SRC}/jinclude.h
78 rm -vf ${JPEG_SRC}/jmemmgr.c
79 rm -vf ${JPEG_SRC}/jmemsys.h
80 rm -vf ${JPEG_SRC}/jmemnobs.c
81 rm -vf ${JPEG_SRC}/jmorecfg.h
82 rm -vf ${JPEG_SRC}/jpegint.h
83 rm -vf ${JPEG_SRC}/jpeglib.h
84 rm -vf ${JPEG_SRC}/jquant1.c
85 rm -vf ${JPEG_SRC}/jquant2.c
86 rm -vf ${JPEG_SRC}/jutils.c
87 rm -vf ${JPEG_SRC}/jcapimin.c
88 rm -vf ${JPEG_SRC}/jcapistd.c
89 rm -vf ${JPEG_SRC}/jccoefct.c
90 rm -vf ${JPEG_SRC}/jccolor.c
91 rm -vf ${JPEG_SRC}/jcdctmgr.c
92 rm -vf ${JPEG_SRC}/jchuff.c
93 rm -vf ${JPEG_SRC}/jchuff.h
94 rm -vf ${JPEG_SRC}/jcinit.c
95 rm -vf ${JPEG_SRC}/jconfig.h
96 rm -vf ${JPEG_SRC}/jcmainct.c
97 rm -vf ${JPEG_SRC}/jcmarker.c
98 rm -vf ${JPEG_SRC}/jcmaster.c
99 rm -vf ${JPEG_SRC}/jcparam.c
100 rm -vf ${JPEG_SRC}/jcphuff.c
101 rm -vf ${JPEG_SRC}/jcprepct.c
102 rm -vf ${JPEG_SRC}/jcsample.c
103 rm -vf ${JPEG_SRC}/jctrans.c
104 rm -vf ${JPEG_SRC}/jdtrans.c
105 rm -vf ${JPEG_SRC}/jfdctflt.c
106 rm -vf ${JPEG_SRC}/jfdctfst.c
107 rm -vf ${JPEG_SRC}/jfdctint.c
108 rm -vf ${JPEG_SRC}/jversion.h
109 rm -vf ${JPEG_SRC}/README
110
111 echo "Removing giflib"
112 if [ ! -d ${GIF_SRC} ]; then
113 echo "${GIF_SRC} does not exist. Refusing to proceed."
114 exit 1
115 fi
116 rm -rvf ${GIF_SRC}
117
118 echo "Removing libpng"
119 if [ ! -d ${PNG_SRC} ]; then
120 echo "${PNG_SRC} does not exist. Refusing to proceed."
121 exit 1
122 fi
123 rm -rvf ${PNG_SRC}
124
125 echo "Removing lcms"
126 if [ ! -d ${LCMS_SRC} ]; then
127 echo "${LCMS_SRC} does not exist. Refusing to proceed."
128 exit 1
129 fi
130 rm -vf ${LCMS_SRC}/cmscam02.c
131 rm -vf ${LCMS_SRC}/cmscgats.c
132 rm -vf ${LCMS_SRC}/cmscnvrt.c
133 rm -vf ${LCMS_SRC}/cmserr.c
134 rm -vf ${LCMS_SRC}/cmsgamma.c
135 rm -vf ${LCMS_SRC}/cmsgmt.c
136 rm -vf ${LCMS_SRC}/cmshalf.c
137 rm -vf ${LCMS_SRC}/cmsintrp.c
138 rm -vf ${LCMS_SRC}/cmsio0.c
139 rm -vf ${LCMS_SRC}/cmsio1.c
140 rm -vf ${LCMS_SRC}/cmslut.c
141 rm -vf ${LCMS_SRC}/cmsmd5.c
142 rm -vf ${LCMS_SRC}/cmsmtrx.c
143 rm -vf ${LCMS_SRC}/cmsnamed.c
144 rm -vf ${LCMS_SRC}/cmsopt.c
145 rm -vf ${LCMS_SRC}/cmspack.c
146 rm -vf ${LCMS_SRC}/cmspcs.c
147 rm -vf ${LCMS_SRC}/cmsplugin.c
148 rm -vf ${LCMS_SRC}/cmsps2.c
149 rm -vf ${LCMS_SRC}/cmssamp.c
150 rm -vf ${LCMS_SRC}/cmssm.c
151 rm -vf ${LCMS_SRC}/cmstypes.c
152 rm -vf ${LCMS_SRC}/cmsvirt.c
153 rm -vf ${LCMS_SRC}/cmswtpnt.c
154 rm -vf ${LCMS_SRC}/cmsxform.c
155 rm -vf ${LCMS_SRC}/lcms2.h
156 rm -vf ${LCMS_SRC}/lcms2_internal.h
157 rm -vf ${LCMS_SRC}/lcms2_plugin.h

Properties

Name Value
svn:eol-style native
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.30