rearranged project structure
authorjprocter <Jim Procter>
Wed, 23 Feb 2005 15:51:59 +0000 (15:51 +0000)
committerjprocter <Jim Procter>
Wed, 23 Feb 2005 15:51:59 +0000 (15:51 +0000)
utils/axis-ant.jar [new file with mode: 0755]
utils/jhindexer [new file with mode: 0755]
utils/jhindexer.jar [new file with mode: 0755]

diff --git a/utils/axis-ant.jar b/utils/axis-ant.jar
new file mode 100755 (executable)
index 0000000..9cb30a9
Binary files /dev/null and b/utils/axis-ant.jar differ
diff --git a/utils/jhindexer b/utils/jhindexer
new file mode 100755 (executable)
index 0000000..e84a1b2
--- /dev/null
@@ -0,0 +1,49 @@
+#! /bin/sh
+# This builds a search database 
+
+# Cygwin support.  $cygwin _must_ be set to either true or false.
+case "`uname`" in
+  CYGWIN*) cygwin=true ;;
+  *) cygwin=false ;;
+esac
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin; then
+  [ -n "$JAVAHELP_HOME" ] &&
+    JAVAHELP_HOME=`cygpath --unix "$JAVAHELP_HOME"`
+fi
+
+if [ "$JAVAHELP_HOME" = "" ] ; then
+  # try to find jhindexer
+  if [ -d /opt/javahelp ] ; then 
+    JAVAHELP_HOME=/opt/javahelp
+  fi
+
+  if [ -d ${HOME}/opt/jhindexer ] ; then 
+    JAVAHELP_HOME=${HOME}/opt/javahelp
+  fi
+
+  ## resolve links - $0 may be a link to javahelp's home
+  PRG=$0
+  progname=`basename $0`
+  
+  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
+  
+  JAVAHELP_HOME=`dirname "$PRG"`/../..
+
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+  JAVAHELP_HOME=`cygpath --path --windows "$JAVAHELP_HOME"`
+fi
+
+java -jar $JAVAHELP_HOME/javahelp/bin/jhindexer.jar "$@"
diff --git a/utils/jhindexer.jar b/utils/jhindexer.jar
new file mode 100755 (executable)
index 0000000..5e54263
Binary files /dev/null and b/utils/jhindexer.jar differ