From 4cea6bc0a5a520de1053e4031bd26f4eb15e81f5 Mon Sep 17 00:00:00 2001 From: Kevin Rushforth Date: Tue, 3 Oct 2006 22:49:56 +0000 Subject: Updated build files to build pre-release self-extracting shell-archives for UNIX git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@707 ba19aa83-45c5-6ac9-afd3-db810772062c --- build-tools/genzip | 54 +++++++++++++++++++ build-tools/linux-amd64/script1.txt | 4 ++ build-tools/linux-amd64/script2.txt | 56 +++++++++++++++++++ build-tools/linux-amd64/unzipsfx | Bin 0 -> 55272 bytes build-tools/linux-i586/script1.txt | 4 ++ build-tools/linux-i586/script2.txt | 56 +++++++++++++++++++ build-tools/linux-i586/unzipsfx | Bin 0 -> 51400 bytes build-tools/solaris-sparc/script1.txt | 4 ++ build-tools/solaris-sparc/script2.txt | 56 +++++++++++++++++++ build-tools/solaris-sparc/unzipsfx | Bin 0 -> 75852 bytes build-tools/solaris-x86/script1.txt | 4 ++ build-tools/solaris-x86/script2.txt | 56 +++++++++++++++++++ build-tools/solaris-x86/unzipsfx | Bin 0 -> 72044 bytes build.xml | 98 +++++++++++++++++++++++++++------- src/native/build.xml | 1 + 15 files changed, 375 insertions(+), 18 deletions(-) create mode 100644 build-tools/genzip create mode 100644 build-tools/linux-amd64/script1.txt create mode 100644 build-tools/linux-amd64/script2.txt create mode 100755 build-tools/linux-amd64/unzipsfx create mode 100644 build-tools/linux-i586/script1.txt create mode 100644 build-tools/linux-i586/script2.txt create mode 100755 build-tools/linux-i586/unzipsfx create mode 100644 build-tools/solaris-sparc/script1.txt create mode 100644 build-tools/solaris-sparc/script2.txt create mode 100755 build-tools/solaris-sparc/unzipsfx create mode 100644 build-tools/solaris-x86/script1.txt create mode 100644 build-tools/solaris-x86/script2.txt create mode 100755 build-tools/solaris-x86/unzipsfx diff --git a/build-tools/genzip b/build-tools/genzip new file mode 100644 index 0000000..85b0832 --- /dev/null +++ b/build-tools/genzip @@ -0,0 +1,54 @@ +#!/bin/sh + +# usage: genzip [ ... ] + +tmpscr1=script1.$$ +tmpscr2=script2.$$ + +archive=$1 +shift +license=$1 +shift + +echo "zip'ing..." + +zip -r $archive.zip $* + +cat ../unzipsfx $archive.zip > $archive + +echo "Checksumming..." + +sum=`/usr/bin/sum $archive` +index=1 +for s in $sum +do + case $index in + 1) sum1=$s; + index=2; + ;; + 2) sum2=$s; + index=3; + ;; + esac +done +echo sum = $sum1 $sum2 + +cat ../script1.txt $license ../script2.txt > $tmpscr1 + +linecount=`/usr/bin/wc -l < $tmpscr1` +linecount=$(($linecount + 1)) +echo linecount = $linecount + +echo "Generating .bin script..." + +sed -e s/@LINECOUNT@/$linecount/ -e s/@SUM1@/$sum1/ -e s/@SUM2@/$sum2/ < $tmpscr1 > $tmpscr2 +cat $tmpscr2 $archive > ../$archive.bin +chmod +x ../$archive.bin + +echo "Cleaning up..." +rm -f $tmpscr1 +rm -f $tmpscr2 +rm -f $archive.zip +rm -f $archive + +echo "Done" diff --git a/build-tools/linux-amd64/script1.txt b/build-tools/linux-amd64/script1.txt new file mode 100644 index 0000000..05d4088 --- /dev/null +++ b/build-tools/linux-amd64/script1.txt @@ -0,0 +1,4 @@ +#!/bin/sh +PATH=/usr/bin:/bin +more <<"EOF" + diff --git a/build-tools/linux-amd64/script2.txt b/build-tools/linux-amd64/script2.txt new file mode 100644 index 0000000..2e6a0d2 --- /dev/null +++ b/build-tools/linux-amd64/script2.txt @@ -0,0 +1,56 @@ + +EOF +agreed= +while [ x$agreed = x ]; do + echo + echo "Do you agree to the above license terms? [yes or no] " + read reply leftover + case $reply in + y* | Y*) + agreed=1;; + n* | n*) + echo "If you don't agree to the license you can't install this sofware"; + exit 1;; + esac +done +if [ ! -w `pwd` ] ; then + echo "You do not have write permission to `pwd`" + echo "Java 3D installation failed" + exit 1 +fi +outname=install.sfx.$$ +echo "Unpacking..." +tail -n +@LINECOUNT@ $0 > $outname +if [ -x /usr/bin/sum ] ; then + echo "Checksumming..." + + sum=`/usr/bin/sum $outname` + index=1 + for s in $sum + do + case $index in + 1) sum1=$s; + index=2; + ;; + 2) sum2=$s; + index=3; + ;; + esac + done + if expr $sum1 != @SUM1@ || expr $sum2 != @SUM2@ ; then + echo "The download file appears to be corrupted. Please refer" + echo "to the Troubleshooting section of the Installation" + echo "Instructions on the download page for more information." + echo "Please do not attempt to install this archive file." + rm -f $outname + exit 1 + fi +else + echo "Can't find /usr/bin/sum to do checksum. Continuing anyway." +fi +echo "Extracting..." +chmod u+x $outname +./$outname +rm -f $outname +echo "Done." +exit 0 diff --git a/build-tools/linux-amd64/unzipsfx b/build-tools/linux-amd64/unzipsfx new file mode 100755 index 0000000..12bfc5c Binary files /dev/null and b/build-tools/linux-amd64/unzipsfx differ diff --git a/build-tools/linux-i586/script1.txt b/build-tools/linux-i586/script1.txt new file mode 100644 index 0000000..05d4088 --- /dev/null +++ b/build-tools/linux-i586/script1.txt @@ -0,0 +1,4 @@ +#!/bin/sh +PATH=/usr/bin:/bin +more <<"EOF" + diff --git a/build-tools/linux-i586/script2.txt b/build-tools/linux-i586/script2.txt new file mode 100644 index 0000000..2e6a0d2 --- /dev/null +++ b/build-tools/linux-i586/script2.txt @@ -0,0 +1,56 @@ + +EOF +agreed= +while [ x$agreed = x ]; do + echo + echo "Do you agree to the above license terms? [yes or no] " + read reply leftover + case $reply in + y* | Y*) + agreed=1;; + n* | n*) + echo "If you don't agree to the license you can't install this sofware"; + exit 1;; + esac +done +if [ ! -w `pwd` ] ; then + echo "You do not have write permission to `pwd`" + echo "Java 3D installation failed" + exit 1 +fi +outname=install.sfx.$$ +echo "Unpacking..." +tail -n +@LINECOUNT@ $0 > $outname +if [ -x /usr/bin/sum ] ; then + echo "Checksumming..." + + sum=`/usr/bin/sum $outname` + index=1 + for s in $sum + do + case $index in + 1) sum1=$s; + index=2; + ;; + 2) sum2=$s; + index=3; + ;; + esac + done + if expr $sum1 != @SUM1@ || expr $sum2 != @SUM2@ ; then + echo "The download file appears to be corrupted. Please refer" + echo "to the Troubleshooting section of the Installation" + echo "Instructions on the download page for more information." + echo "Please do not attempt to install this archive file." + rm -f $outname + exit 1 + fi +else + echo "Can't find /usr/bin/sum to do checksum. Continuing anyway." +fi +echo "Extracting..." +chmod u+x $outname +./$outname +rm -f $outname +echo "Done." +exit 0 diff --git a/build-tools/linux-i586/unzipsfx b/build-tools/linux-i586/unzipsfx new file mode 100755 index 0000000..00c946c Binary files /dev/null and b/build-tools/linux-i586/unzipsfx differ diff --git a/build-tools/solaris-sparc/script1.txt b/build-tools/solaris-sparc/script1.txt new file mode 100644 index 0000000..05d4088 --- /dev/null +++ b/build-tools/solaris-sparc/script1.txt @@ -0,0 +1,4 @@ +#!/bin/sh +PATH=/usr/bin:/bin +more <<"EOF" + diff --git a/build-tools/solaris-sparc/script2.txt b/build-tools/solaris-sparc/script2.txt new file mode 100644 index 0000000..6cd859c --- /dev/null +++ b/build-tools/solaris-sparc/script2.txt @@ -0,0 +1,56 @@ + +EOF +agreed= +while [ x$agreed = x ]; do + echo + echo "Do you agree to the above license terms? [yes or no] " + read reply leftover + case $reply in + y* | Y*) + agreed=1;; + n* | n*) + echo "If you don't agree to the license you can't install this sofware"; + exit 1;; + esac +done +if [ ! -w `pwd` ] ; then + echo "You do not have write permission to `pwd`" + echo "Java 3D installation failed" + exit 1 +fi +outname=install.sfx.$$ +echo "Unpacking..." +tail +@LINECOUNT@ $0 > $outname +if [ -x /usr/bin/sum ] ; then + echo "Checksumming..." + + sum=`/usr/bin/sum $outname` + index=1 + for s in $sum + do + case $index in + 1) sum1=$s; + index=2; + ;; + 2) sum2=$s; + index=3; + ;; + esac + done + if expr $sum1 != @SUM1@ || expr $sum2 != @SUM2@ ; then + echo "The download file appears to be corrupted. Please refer" + echo "to the Troubleshooting section of the Installation" + echo "Instructions on the download page for more information." + echo "Please do not attempt to install this archive file." + rm -f $outname + exit 1 + fi +else + echo "Can't find /usr/bin/sum to do checksum. Continuing anyway." +fi +echo "Extracting..." +chmod u+x $outname +./$outname +rm -f $outname +echo "Done." +exit 0 diff --git a/build-tools/solaris-sparc/unzipsfx b/build-tools/solaris-sparc/unzipsfx new file mode 100755 index 0000000..a27ffd5 Binary files /dev/null and b/build-tools/solaris-sparc/unzipsfx differ diff --git a/build-tools/solaris-x86/script1.txt b/build-tools/solaris-x86/script1.txt new file mode 100644 index 0000000..05d4088 --- /dev/null +++ b/build-tools/solaris-x86/script1.txt @@ -0,0 +1,4 @@ +#!/bin/sh +PATH=/usr/bin:/bin +more <<"EOF" + diff --git a/build-tools/solaris-x86/script2.txt b/build-tools/solaris-x86/script2.txt new file mode 100644 index 0000000..6cd859c --- /dev/null +++ b/build-tools/solaris-x86/script2.txt @@ -0,0 +1,56 @@ + +EOF +agreed= +while [ x$agreed = x ]; do + echo + echo "Do you agree to the above license terms? [yes or no] " + read reply leftover + case $reply in + y* | Y*) + agreed=1;; + n* | n*) + echo "If you don't agree to the license you can't install this sofware"; + exit 1;; + esac +done +if [ ! -w `pwd` ] ; then + echo "You do not have write permission to `pwd`" + echo "Java 3D installation failed" + exit 1 +fi +outname=install.sfx.$$ +echo "Unpacking..." +tail +@LINECOUNT@ $0 > $outname +if [ -x /usr/bin/sum ] ; then + echo "Checksumming..." + + sum=`/usr/bin/sum $outname` + index=1 + for s in $sum + do + case $index in + 1) sum1=$s; + index=2; + ;; + 2) sum2=$s; + index=3; + ;; + esac + done + if expr $sum1 != @SUM1@ || expr $sum2 != @SUM2@ ; then + echo "The download file appears to be corrupted. Please refer" + echo "to the Troubleshooting section of the Installation" + echo "Instructions on the download page for more information." + echo "Please do not attempt to install this archive file." + rm -f $outname + exit 1 + fi +else + echo "Can't find /usr/bin/sum to do checksum. Continuing anyway." +fi +echo "Extracting..." +chmod u+x $outname +./$outname +rm -f $outname +echo "Done." +exit 0 diff --git a/build-tools/solaris-x86/unzipsfx b/build-tools/solaris-x86/unzipsfx new file mode 100755 index 0000000..fdf918f Binary files /dev/null and b/build-tools/solaris-x86/unzipsfx differ diff --git a/build.xml b/build.xml index 612dd02..8b3199e 100644 --- a/build.xml +++ b/build.xml @@ -57,7 +57,7 @@ * The following property specifies the beta revision of the current * Java 3D version being built. It is ignored for non-beta builds. --> - + - + + - + + - + @@ -286,6 +300,7 @@ + @@ -304,6 +319,7 @@ + @@ -322,6 +338,7 @@ + @@ -481,14 +498,19 @@ - + + + - - - - + + + + + + + @@ -496,24 +518,64 @@ includes="bin/**" /> - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/src/native/build.xml b/src/native/build.xml index de87ff4..b458a28 100644 --- a/src/native/build.xml +++ b/src/native/build.xml @@ -398,6 +398,7 @@ + -- cgit v1.2.3