--- groovy-0.1.0beta10.orig/src/bin/grok
+++ groovy-0.1.0beta10/src/bin/grok
@@ -68,24 +68,7 @@
 
 # Locate GROOVY_HOME if not it is not set
 if [ -z "$GROOVY_HOME" -o ! -d "$GROOVY_HOME" ] ; then
-  # resolve links - $0 may be a link to groovy's home
-  PRG="$0"
-
-  # need this for relative symlinks
-  while [ -h "$PRG" ] ; do
-    ls=`ls -ld "$PRG"`
-    link=`expr "$ls" : '.*-> \(.*\)$'`
-    if expr "$link" : '/.*' > /dev/null; then
-    PRG="$link"
-    else
-    PRG=`dirname "$PRG"`"/$link"
-    fi
-  done
-
-  SAVED="`pwd`"
-  cd "`dirname \"$PRG\"`/.."
-  GROOVY_HOME="`pwd -P`"
-  cd "$SAVED"
+  GROOVY_HOME="/usr/share/groovy"  # debian package has a fixed location
 fi
 
 
--- groovy-0.1.0beta10.orig/src/bin/groovy
+++ groovy-0.1.0beta10/src/bin/groovy
@@ -77,24 +77,7 @@
 
 # Locate GROOVY_HOME if not it is not set
 if [ -z "$GROOVY_HOME" -o ! -d "$GROOVY_HOME" ] ; then
-  # resolve links - $0 may be a link to groovy's home
-  PRG="$0"
-
-  # need this for relative symlinks
-  while [ -h "$PRG" ] ; do
-    ls=`ls -ld "$PRG"`
-    link=`expr "$ls" : '.*-> \(.*\)$'`
-    if expr "$link" : '/.*' > /dev/null; then
-    PRG="$link"
-    else
-    PRG=`dirname "$PRG"`"/$link"
-    fi
-  done
-
-  SAVED="`pwd`"
-  cd "`dirname \"$PRG\"`/.."
-  GROOVY_HOME="`pwd -P`"
-  cd "$SAVED"
+  GROOVY_HOME="/usr/share/groovy" # debian package has a fixed location
 fi
 
 # Use default groovy-classworlds config
--- groovy-0.1.0beta10.orig/src/bin/groovyc
+++ groovy-0.1.0beta10/src/bin/groovyc
@@ -68,24 +68,7 @@
 
 # Locate GROOVY_HOME if not it is not set
 if [ -z "$GROOVY_HOME" -o ! -d "$GROOVY_HOME" ] ; then
-  # resolve links - $0 may be a link to groovy's home
-  PRG="$0"
-
-  # need this for relative symlinks
-  while [ -h "$PRG" ] ; do
-    ls=`ls -ld "$PRG"`
-    link=`expr "$ls" : '.*-> \(.*\)$'`
-    if expr "$link" : '/.*' > /dev/null; then
-    PRG="$link"
-    else
-    PRG=`dirname "$PRG"`"/$link"
-    fi
-  done
-
-  SAVED="`pwd`"
-  cd "`dirname \"$PRG\"`/.."
-  GROOVY_HOME="`pwd -P`"
-  cd "$SAVED"
+  GROOVY_HOME="/usr/share/groovy" # debian package has a fixed location
 fi
 
 # Use default groovyc-classworlds config
--- groovy-0.1.0beta10.orig/src/bin/groovyConsole
+++ groovy-0.1.0beta10/src/bin/groovyConsole
@@ -68,24 +68,7 @@
 
 # Locate GROOVY_HOME if not it is not set
 if [ -z "$GROOVY_HOME" -o ! -d "$GROOVY_HOME" ] ; then
-  # resolve links - $0 may be a link to groovy's home
-  PRG="$0"
-
-  # need this for relative symlinks
-  while [ -h "$PRG" ] ; do
-    ls=`ls -ld "$PRG"`
-    link=`expr "$ls" : '.*-> \(.*\)$'`
-    if expr "$link" : '/.*' > /dev/null; then
-    PRG="$link"
-    else
-    PRG=`dirname "$PRG"`"/$link"
-    fi
-  done
-
-  SAVED="`pwd`"
-  cd "`dirname \"$PRG\"`/.."
-  GROOVY_HOME="`pwd -P`"
-  cd "$SAVED"
+  GROOVY_HOME="/usr/share/groovy" # debian package has a fixed location
 fi
 
 # Use default groovy-classworlds config
--- groovy-0.1.0beta10.orig/src/bin/groovysh
+++ groovy-0.1.0beta10/src/bin/groovysh
@@ -68,24 +68,7 @@
 
 # Locate GROOVY_HOME if not it is not set
 if [ -z "$GROOVY_HOME" -o ! -d "$GROOVY_HOME" ] ; then
-  # resolve links - $0 may be a link to groovy's home
-  PRG="$0"
-
-  # need this for relative symlinks
-  while [ -h "$PRG" ] ; do
-    ls=`ls -ld "$PRG"`
-    link=`expr "$ls" : '.*-> \(.*\)$'`
-    if expr "$link" : '/.*' > /dev/null; then
-    PRG="$link"
-    else
-    PRG=`dirname "$PRG"`"/$link"
-    fi
-  done
-
-  SAVED="`pwd`"
-  cd "`dirname \"$PRG\"`/.."
-  GROOVY_HOME="`pwd -P`"
-  cd "$SAVED"
+  GROOVY_HOME="/usr/share/groovy" # debian package has a fixed location
 fi
 
 # Use default groovy-classworlds config
--- groovy-0.1.0beta10.orig/src/main/org/codehaus/groovy/tools/DocGenerator.groovy
+++ groovy-0.1.0beta10/src/main/org/codehaus/groovy/tools/DocGenerator.groovy
@@ -80,7 +80,7 @@
 			headElement = { head {
 								mkp.comment 'generated by Groovy using Streaming Markup'
 								title 'GDK : Groovy methods'
-								style(['type':'text/css'], '   @import url("./style/maven-base.css"); ')
+								style(['type':'text/css'], '   @import url("http://groovy.codehaus.org/style/maven-base.css"); ')
 								style(['type':'text/css'], '   @import url("http://codehaus.org/codehaus-style.css"); ')
 							}
 						  }
@@ -274,7 +274,7 @@
             new File("src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java")
         outFileName =
             //new File("D:/cvs-groovy/groovy/groovy-core/target/html/groovy-jdk.html")
-            new File("target/html/groovy-jdk.html")
+            new File("debian/groovy-doc/usr/share/doc/groovy-doc/groovy-jdk.html")
 
         start = System.currentTimeMillis();
 
@@ -286,4 +286,4 @@
         println "Done. in ${end - start} millis"
 
     }
-}
\ No newline at end of file
+}
--- groovy-0.1.0beta10.orig/debian/changelog
+++ groovy-0.1.0beta10/debian/changelog
@@ -0,0 +1,49 @@
+groovy (0.1.0beta10-2) unstable; urgency=low
+
+  * Added missing dependency to bzip2. Thanks for Andreas Jochens
+    <aj@andaco.de> for the bug report.
+    (closes: #302574)
+
+ -- Marcus Crafter <crafterm@debian.org>  Sat,  2 Apr 2005 20:32:48 +0200
+
+groovy (0.1.0beta10-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Marcus Crafter <crafterm@debian.org>  Wed,  9 Mar 2005 17:11:18 +0100
+
+groovy (0.1.0beta8-4) unstable; urgency=low
+
+  * Improved website mirror in groovy-doc package by increasing the mirrored
+    link depth to 2. This catches many more articles from the Groovy wiki
+    which would be of interest for offline reading.
+  * Fixed broken doc-base links, added doc-base link for the website mirror.
+  * Added examples.
+
+ -- Marcus Crafter <crafterm@debian.org>  Mon,  3 Jan 2005 21:34:18 +0100
+
+groovy (0.1.0beta8-3) unstable; urgency=low
+
+  * Added a shallow copy of the Groovy website to the groovy-doc package,
+    which contains various articles, language references and documents for
+    offline use. Rearranged javadoc generation to fit in with the website.
+
+ -- Marcus Crafter <crafterm@debian.org>  Mon,  3 Jan 2005 00:37:10 +0100
+
+groovy (0.1.0beta8-2) unstable; urgency=low
+
+  * Updated build to include Groovy API javadoc, and Groovy JDK
+    documentation.
+  * Split package into a software and documentation package.
+  * Added doc-base details for groovy-doc package for the javadocs and
+    groovy API.
+
+ -- Marcus Crafter <crafterm@debian.org>  Sun,  2 Jan 2005 14:33:52 +0100
+
+groovy (0.1.0beta8-1) unstable; urgency=low
+
+  * Initial Release.
+    (closes: #268029)
+
+ -- Marcus Crafter <crafterm@debian.org>  Sat, 18 Dec 2004 22:45:06 +0100
+
--- groovy-0.1.0beta10.orig/debian/compat
+++ groovy-0.1.0beta10/debian/compat
@@ -0,0 +1 @@
+4
--- groovy-0.1.0beta10.orig/debian/groovy.links
+++ groovy-0.1.0beta10/debian/groovy.links
@@ -0,0 +1,18 @@
+/usr/share/groovy/bin/grok		/usr/bin/grok
+/usr/share/groovy/bin/groovy		/usr/bin/groovy
+/usr/share/groovy/bin/groovyc		/usr/bin/groovyc
+/usr/share/groovy/bin/groovyConsole	/usr/bin/groovyConsole
+/usr/share/groovy/bin/groovysh		/usr/bin/groovysh
+/usr/share/java/asm-analysis.jar	/usr/share/groovy/lib/asm-analysis.jar
+/usr/share/java/asm-attrs.jar		/usr/share/groovy/lib/asm-attrs.jar
+/usr/share/java/asm.jar			/usr/share/groovy/lib/asm.jar
+/usr/share/java/asm-util.jar		/usr/share/groovy/lib/asm-util.jar
+/usr/share/java/bsf.jar			/usr/share/groovy/lib/bsf.jar
+/usr/share/java/classworlds.jar		/usr/share/groovy/lib/classworlds-1.0.jar
+/usr/share/java/commons-cli.jar		/usr/share/groovy/lib/commons-cli.jar
+/usr/share/java/commons-logging.jar	/usr/share/groovy/lib/commons-logging.jar
+/usr/share/java/junit.jar		/usr/share/groovy/lib/junit.jar
+/usr/share/java/mockobjects-core.jar	/usr/share/groovy/lib/mockobjects-core.jar
+/usr/share/java/mx4j.jar		/usr/share/groovy/lib/mx4j.jar
+/usr/share/java/regexp.jar		/usr/share/groovy/lib/regexp.jar
+/usr/share/java/servlet-2.3.jar		/usr/share/groovy/lib/servlet-2.3.jar
--- groovy-0.1.0beta10.orig/debian/bundled.tar.bz2.uue
+++ groovy-0.1.0beta10/debian/bundled.tar.bz2.uue
@@ -0,0 +1,53224 @@
+begin-base64 644 /dev/stdout
[encoded data, 19220 characters]
+a0BvSTHYyVmNSIf4so2fGxQfzqUBfIk9C5TvXGkM5dFLTI3lZ1Twr4e0