aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-08-06 19:32:29 +0200
committerSven Gothel <[email protected]>2013-08-06 19:32:29 +0200
commita94b0e3c62110f077ea391ccdc158b2c804a5bb8 (patch)
tree15150ca4a2f3f733c22a474f9cffb43a27a2dad1 /scripts
parentfb85d3c8f49b7fa0fe6c44e6723585708ffdf808 (diff)
OpenJDK 8 Profiles ..
Stripped binary size GNU/Linux x64: 30M export/linux-x86_64-normal-server-release/j2re-compact1-image 42M export/linux-x86_64-normal-server-release/j2re-compact2-image 48M export/linux-x86_64-normal-server-release/j2re-compact3-image 94M export/linux-x86_64-normal-server-release/j2re-image
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
+