aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/export.jep161-openjdk8.sh46
-rw-r--r--scripts/make.jep161-openjdk8.sh13
2 files changed, 59 insertions, 0 deletions
diff --git a/scripts/export.jep161-openjdk8.sh b/scripts/export.jep161-openjdk8.sh
new file mode 100644
index 0000000..1cfab2d
--- /dev/null
+++ b/scripts/export.jep161-openjdk8.sh
@@ -0,0 +1,46 @@
+#! /bin/sh
+
+image_dir=$1
+export_dir=$2
+strip_tool=$3
+
+if [ -z "$image_dir" -o -z "$export_dir" ] ; then
+ echo "Usage: $0 <image_dir> <export_dir> [<strip_tool>]"
+ exit 0
+fi
+
+if [ -z "$strip_tool" ] ; then
+ strip_tool=`which strip`
+fi
+
+logfile=`basename $0 .sh`.log
+
+this_dir=`pwd`
+
+export_single() {
+ comp=$1
+ cp -a $image_dir/$comp $export_dir/
+ cd $export_dir/$comp
+ for i in `find . -type f -a \( -name \*.so -o -name \*.dll -o -name \*.jnilib \)` ; do
+ $strip_tool $i
+ done
+ for i in bin/* ; do
+ $strip_tool $i
+ done
+ cd $this_dir
+ echo "DU image $image_dir/$comp"
+ du -hs $image_dir/$comp
+ echo "DU export $export_dir/$comp"
+ du -hs $export_dir/$comp
+}
+
+export_it() {
+ mkdir -p $export_dir
+ export_single j2re-compact1-image
+ export_single j2re-compact2-image
+ export_single j2re-compact3-image
+ export_single j2re-image
+}
+
+export_it 2>&1 | tee -a $logfile
+
diff --git a/scripts/make.jep161-openjdk8.sh b/scripts/make.jep161-openjdk8.sh
new file mode 100644
index 0000000..85f5da0
--- /dev/null
+++ b/scripts/make.jep161-openjdk8.sh
@@ -0,0 +1,13 @@
+#! /bin/sh
+
+logfile=`basename $0 .sh`.log
+
+build_it() {
+ sh configure --enable-openjdk-only \
+ --disable-zip-debug-info --disable-debug-symbols \
+ --with-debug-level=release \
+ && make profiles images docs
+}
+
+build_it 2>&1 | tee -a $logfile
+