aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/lib/jazzlib
diff options
context:
space:
mode:
authorTom Tromey <tromey@gcc.gnu.org>2007-01-09 19:58:05 +0000
committerTom Tromey <tromey@gcc.gnu.org>2007-01-09 19:58:05 +0000
commit97b8365cafc3a344a22d3980b8ed885f5c6d8357 (patch)
tree996a5f57d4a68c53473382e45cb22f574cb3e4db /libjava/classpath/lib/jazzlib
parentc648dedbde727ca3f883bb5fd773aa4af70d3369 (diff)
downloadgcc-97b8365cafc3a344a22d3980b8ed885f5c6d8357.zip
gcc-97b8365cafc3a344a22d3980b8ed885f5c6d8357.tar.gz
gcc-97b8365cafc3a344a22d3980b8ed885f5c6d8357.tar.bz2
Merged gcj-eclipse branch to trunk.
From-SVN: r120621
Diffstat (limited to 'libjava/classpath/lib/jazzlib')
-rw-r--r--libjava/classpath/lib/jazzlib/index.html47
-rwxr-xr-xlibjava/classpath/lib/jazzlib/makeJazzlibDist.sh121
2 files changed, 168 insertions, 0 deletions
diff --git a/libjava/classpath/lib/jazzlib/index.html b/libjava/classpath/lib/jazzlib/index.html
new file mode 100644
index 0000000..72ac816
--- /dev/null
+++ b/libjava/classpath/lib/jazzlib/index.html
@@ -0,0 +1,47 @@
+<html>
+<head>
+<title>A pure java implementation of java.util.zip library</title>
+</head>
+<body>
+<h1>A pure java implementation of the java.util.zip library</h1>
+
+This project provides an implementation of the java.util.zip classes.
+<br><br>
+The code is pure java (no native code is used), and we aim to be compatible with existing java.util.zip implementations. Some code was borrowed from libgcj, almost all the rest was written by Jochen Hoenicke.
+<br><br>
+There is very similar project at <a href="http://www.jcraft.com/jzlib/index.html">http://www.jcraft.com/jzlib/index.html</a>.<br>
+Another project to implement bzip2 is at <a href="http://www.aftexsw.com/aftex/products/java/bzip/">http://www.aftexsw.com/aftex/products/java/bzip/</a>.
+<p>
+For the latest source, see the classpath CVS repository. On this page you'll find source and binary releases of the code in both the <strong>net.sf.jazzlib</strong> and <strong>java.util.zip</strong> namespaces.
+<p>
+The <strong>net.sf.jazzlib</strong> namespace is useful for situations where native code isn't allowed (such as in applets) and you need to use zip files. Builds in the <strong>java.util.zip</strong> namespace have a -juz suffix.
+<br>
+<h3>License</h3>
+This code is released under the GPL license with a special exception:
+<pre>
+As a special exception, if you link this library with other files to
+produce an executable, this library does not by itself cause the
+resulting executable to be covered by the GNU General Public License.
+This exception does not however invalidate any other reasons why the
+executable file might be covered by the GNU General Public License.
+</pre>
+<h3>Latest release is 0.07</h3>
+Download source or binary packages for all releases <a href="http://sourceforge.net/project/showfiles.php?group_id=16807">here</a>.
+<p>
+There is a md5sums file in each release that you can use to check the integrity of the files. The md5sums is also signed with my public key (finger jewel at debian.org), the signature is in md5sums.asc.
+<p>
+<h3>Contact information and bug notification</h3>
+You should post a message to the jazzlib-developers list (<a href="http://lists.sourceforge.net/mailman/listinfo/jazzlib-developers">subscribe</a>, <a href="http://sourceforge.net/mailarchive/forum.php?forum=jazzlib-developers">archives</a>) to report a bug or contact the developers.
+
+<br>
+The <a href="http://savannah.gnu.org/cvs/?group_id=85">CVS repository</a> for this project is part of the <a href="http://www.gnu.org/software/classpath/">classpath</a> project.
+<p>
+The files in the SourceForge CVS repository should be considered to be of historical interest only.
+<p>
+John Leuner (jewel at pixie.co.za) <br>
+13 May 2004
+
+<hr>
+<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=16807" width="88" height="31" border="0" alt="SourceForge Logo"></A>
+</body>
+</html> \ No newline at end of file
diff --git a/libjava/classpath/lib/jazzlib/makeJazzlibDist.sh b/libjava/classpath/lib/jazzlib/makeJazzlibDist.sh
new file mode 100755
index 0000000..5c75960
--- /dev/null
+++ b/libjava/classpath/lib/jazzlib/makeJazzlibDist.sh
@@ -0,0 +1,121 @@
+#!/bin/zsh
+
+echo "----- Run this from the classpath/java/util/zip directory -----"
+echo "----- -----"
+echo "----- Options: -----"
+echo "----- -----"
+echo "----- juz -- build .tar.gz and .zip archives in java.util.zip namespace"
+echo "----- jar -- build .jar file in java.util.zip and java.util.jar namespaces"
+echo "----- -- build .tar.gz. and .zip archive for net.sf.jazzlib namespace"
+echo "----- -----"
+echo "----- Edit this script to change the release number -----"
+echo "----- Do rm -rf dist when you're finished -----"
+echo "----- 30 May 2002 John Leuner <jewel@debian.org> -----"
+
+RELEASE_NUMBER=07
+
+# $1 is the archive command, eg "tar czvf" or "zip" or "jar cf"
+# $2 is the archive suffix, eg ".zip" or ".tar.gz"
+# $3 is the "-binary" flag, which may be empty
+# $4 is the "-juz" suffix, which may be empty
+# $5 is the set of files that need to be md5-summed
+# $6 is the set of files in addition to $5 that are to be archived
+
+function create_archive {
+ md5sum ${=5} > md5sums
+ gpg --clearsign md5sums
+ ${=1} jazzlib${3}-0.$RELEASE_NUMBER${4}${2} ${=5} ${=6}
+ rm -f md5sums
+ rm -f md5sums.asc
+}
+
+# $1 is the package name, ie java.util.zip or net.sf.jazzlib
+
+function make_javadoc {
+ rm -rf javadoc
+ mkdir javadoc
+ javadoc -sourcepath . -d javadoc/ $1
+}
+
+case "$1" in
+ juz)
+ mkdir -p dist/java/util/zip
+
+ #make source archive
+ cp *.java dist/java/util/zip
+ pushd dist
+
+ make_javadoc java.util.zip
+
+ cp ../../../../COPYING .
+
+ foo=(java/util/zip/*.java)
+ create_archive "tar czvf" ".tar.gz" "" "-juz" "$foo" "javadoc md5sums md5sums.asc COPYING"
+ create_archive "zip" ".zip" "" "-juz" "$foo" "javadoc md5sums md5sums.asc COPYING"
+
+ popd
+
+ #make binary distro second
+ cp ../../../lib/java/util/zip/*.class dist/java/util/zip
+ pushd dist
+
+ foo=(java/util/zip/*.class)
+ create_archive "tar czvf" ".tar.gz" "-binary" "-juz" "$foo" "javadoc md5sums md5sums.asc COPYING"
+ create_archive "zip" ".zip" "-binary" "-juz" "$foo" "javadoc md5sums md5sums.asc COPYING"
+
+ popd
+ ;;
+ jar)
+ mkdir -p dist/java/util/zip
+ mkdir -p dist/java/util/jar
+
+ #make binary distro second
+ cp ../../../lib/java/util/zip/*.class dist/java/util/zip
+ cp ../../../lib/java/util/zip/../jar/*.class dist/java/util/jar
+ pushd dist
+
+ cp ../../../../COPYING .
+ foo=(java/util/zip/*.class)
+ foo=($foo java/util/jar/*.class)
+
+ create_archive "fastjar cf" ".jar" "-binary" "-juz" "$foo" "md5sums md5sums.asc COPYING"
+
+ popd
+ ;;
+ *)
+ #copy files to dist directory and make net.sf.jazzlib the package name
+
+ mkdir -p dist/net/sf/jazzlib
+ cp *.java dist/net/sf/jazzlib
+ for i in dist/net/sf/jazzlib/*.java ; do
+ sed -e "s/java\.util\.zip/net.sf.jazzlib/" < $i > $i.tmp ;
+ mv $i.tmp $i;
+ done
+
+ pushd dist
+
+ make_javadoc "net.sf.jazzlib"
+
+ cp ../../../../COPYING .
+
+ foo=(net/sf/jazzlib/*.java)
+ create_archive "tar czvf" ".tar.gz" "" "" "$foo" "javadoc md5sums md5sums.asc COPYING"
+ create_archive "zip" ".zip" "" "" "$foo" "javadoc md5sums md5sums.asc COPYING"
+
+ #compile the source
+ javac net/sf/jazzlib/*.java
+
+ foo=(net/sf/jazzlib/*.class)
+ create_archive "tar czvf" ".tar.gz" "-binary" "" "$foo" "javadoc md5sums md5sums.asc COPYING"
+ create_archive "zip" ".zip" "-binary" "" "$foo" "javadoc md5sums md5sums.asc COPYING"
+
+ #back to dir
+ popd
+
+ ;;
+esac
+ls -la dist/{*.tar.gz,*.jar,*.zip}
+
+
+
+