Blame SOURCES/generate-rhel-zip.sh

b79db3
#!/bin/sh
b79db3
b79db3
# Untar openjdk source tarball.
b79db3
mkdir openjdk
423b73
tar xJf $1 -C openjdk
b79db3
b79db3
# PRx denotes bug x in the IcedTea bug database (http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=x)
b79db3
# Sx denotes bug x in the Sun bug database (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=x)
b79db3
b79db3
# PR146/S6713083
b79db3
# Remove binaries
b79db3
rm -f \
b79db3
  openjdk/jdk/test/sun/management/windows/revokeall.exe \
b79db3
  openjdk/jdk/test/sun/management/jmxremote/bootstrap/linux-i586/launcher \
b79db3
  openjdk/jdk/test/sun/management/jmxremote/bootstrap/solaris-sparc/launcher \
b79db3
  openjdk/jdk/test/sun/management/jmxremote/bootstrap/solaris-i586/launcher
b79db3
b79db3
rm -f \
b79db3
  openjdk/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/linux-i586/libLauncher.so \
b79db3
  openjdk/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-i586/libLauncher.so \
b79db3
  openjdk/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-sparc/libLauncher.so \
b79db3
  openjdk/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-sparcv9/libLauncher.so \
b79db3
  openjdk/jdk/test/tools/launcher/lib/i386/lib32/lib32/liblibrary.so \
b79db3
  openjdk/jdk/test/tools/launcher/lib/i386/lib32/liblibrary.so \
b79db3
  openjdk/jdk/test/tools/launcher/lib/sparc/lib32/lib32/liblibrary.so \
b79db3
  openjdk/jdk/test/tools/launcher/lib/sparc/lib32/liblibrary.so \
b79db3
  openjdk/jdk/test/tools/launcher/lib/sparc/lib64/lib64/liblibrary.so \
b79db3
  openjdk/jdk/test/tools/launcher/lib/sparc/lib64/liblibrary.so
b79db3
b79db3
rm -f \
b79db3
  openjdk/jdk/test/java/util/Locale/data/deflocale.exe \
b79db3
  openjdk/jdk/test/java/util/Locale/data/deflocale.jds3 \
b79db3
  openjdk/jdk/test/java/util/Locale/data/deflocale.rhel4 \
b79db3
  openjdk/jdk/test/java/util/Locale/data/deflocale.sh \
b79db3
  openjdk/jdk/test/java/util/Locale/data/deflocale.sol10 \
b79db3
  openjdk/jdk/test/java/util/Locale/data/deflocale.winvista \
b79db3
  openjdk/jdk/test/java/util/Locale/data/deflocale.winxp \
b79db3
b79db3
# Remove test sources with questionable license headers.
b79db3
rm -f \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/Bug4168625Resource3.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/Bug4168625Resource3_en_IE.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/Bug4165815Test.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/Bug4177489_Resource_jf.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/Bug4168625Resource3_en_CA.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/Bug4168625Getter.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/Bug4177489Test.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/Bug4168625Resource.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/Bug4168625Resource2.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/Bug4168625Resource3_en_US.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/Bug4083270Test.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/Bug4168625Resource3_en.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/Bug4177489_Resource.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/Bug4168625Test.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/Bug4168625Resource2_en_US.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/Bug4168625Class.java \
b79db3
   openjdk/jdk/test/java/util/Locale/Bug4175998Test.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/RBTestFmwk.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/TestResource_fr.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/Bug4179766Resource.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/Bug4179766Getter.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/Bug4179766Class.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/TestResource.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/FakeTestResource.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/TestResource_de.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/TestBug4179766.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/TestResource_fr_CH.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/ResourceBundleTest.java \
b79db3
   openjdk/jdk/test/java/util/ResourceBundle/TestResource_it.java \
b79db3
   openjdk/jdk/test/java/util/Locale/PrintDefaultLocale.java \
b79db3
   openjdk/jdk/test/java/util/Locale/LocaleTest.java \
b79db3
   openjdk/jdk/test/java/util/Locale/LocaleTestFmwk.java \
b79db3
   openjdk/jdk/test/java/util/Locale/Bug4184873Test.java \
b79db3
   openjdk/jdk/test/sun/text/resources/LocaleDataTest.java
b79db3
b79db3
# Remove J2DBench sources, some of which have questionable license
b79db3
# headers.
b79db3
rm -rf \
b79db3
  openjdk/jdk/src/share/demo/java2d/J2DBench
b79db3
6d5ba8
# Requires IcedTea patch PR2125 (not included)
6d5ba8
echo "Syncing EC list with NSS"
6d5ba8
patch -Np0 < pr2125.patch
b79db3
b79db3
# Create new tarball with new name.
b79db3
pushd openjdk > /dev/null
423b73
  tar cJf ../$(basename $1 .tar.xz)-rhel.tar.xz *
b79db3
popd > /dev/null
b79db3
b79db3
# Remove old unzipped openjdk dir.
b79db3
rm -rf openjdk