changeset 46:1b44a134cf15

Added script to modify zip.
author Lillian Angel <langel@redhat.com>
date Mon, 27 Aug 2007 15:30:03 -0400
parents 56c9a19a2918
children f115d7e33997
files modzip.sh
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modzip.sh	Mon Aug 27 15:30:03 2007 -0400
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# Unzip openjdk source zip
+unzip -q $@
+
+# Remove idl sources with questionable license headers
+rm -f openjdk/j2se/src/share/classes/com/sun/tools/corba/se/idl/grammar.idl openjdk/j2se/src/share/classes/com/sun/tools/corba/se/idl/first.set openjdk/j2se/src/share/classes/com/sun/tools/corba/se/idl/grammar3.idl openjdk/j2se/src/share/classes/com/sun/tools/corba/se/idl/follow.set
+
+# Remove jhat sources. Most have questionable license headers
+rm -rf openjdk/j2se/src/share/classes/com/sun/tools/hat/* openjdk/j2se/make/sun/jhat/Makefile
+patch -p0 < `pwd`/../patches/jhat.patch
+
+# Create new zip with new name
+NEW_ZIP=`echo $@ | sed -e 's/\.zip/-fedora.zip/'`
+zip -rq $NEW_ZIP openjdk/
+
+# Remove old unzipped openjdk dir
+rm -rf openjdk/
+