Move scripts to top level
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 9 Nov 2006 12:05:25 +0000 (12:05 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 9 Nov 2006 12:05:25 +0000 (12:05 +0000)
Remove metadata tool script (moved to OpenSAML)

git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2059 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

bin/metadatatool [deleted file]
bin/metadatatool.bat [deleted file]
cpappend.bat [moved from bin/cpappend.bat with 100% similarity]
extkeytool [moved from bin/extkeytool with 100% similarity]
extkeytool.bat [moved from bin/extkeytool.bat with 100% similarity]
resolvertest [moved from bin/resolvertest with 100% similarity]
resolvertest.bat [moved from bin/resolvertest.bat with 100% similarity]

diff --git a/bin/metadatatool b/bin/metadatatool
deleted file mode 100755 (executable)
index cd18426..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/bin/sh
-
-##We need a JVM
-if [ ! -n "$JAVA_HOME" ] ; then
-  echo "Error: JAVA_HOME is not defined."
-  exit
-fi
-
-if [ ! -n "$JAVACMD" ] ; then
-  JAVACMD=$JAVA_HOME/bin/java
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
-  echo "Error: JAVA_HOME is not defined correctly."
-  echo "Cannot execute $JAVACMD"
-  exit
-fi
-
-
-##Find the shibboleth components
-SHIB_HOME=
-if [ -n "$IDP_HOME" ] ; then
-       SHIB_HOME=$IDP_HOME
-fi
-if [ -n "$SP_HOME" ] ; then
-       SHIB_HOME=$SP_HOME
-fi
-if [ ! -n "$SHIB_HOME" ] ; then
-       echo "Error: Neither IDP_HOME nor SP_HOME is defined."
-       exit
-fi
-
-ENDORSED=$SHIB_HOME/endorsed
-
-if [ ! \( -f "$SHIB_HOME/lib/shib-util.jar" -a -r "$SHIB_HOME/lib/shib-util.jar" \) ] ; then
-  echo "Error: Cannot find the shibboleth jar (shib-util.jar)."
-  echo "       If you downloaded the shibboleth source, you need to run \"ant build-util\""
-  exit
-fi
-
-##Grab all the dependencies
-if [ -n "$CLASSPATH" ] ; then
-  SHIB_UTIL_CLASSPATH=$CLASSPATH
-fi
-
-DIRLIBS=${SHIB_HOME}/lib/*.jar
-for i in ${DIRLIBS}
-do
-    # if the directory is empty, then it will return the input string
-    # this is stupid, so case for it
-    if [ "$i" != "${DIRLIBS}" ] ; then
-      if [ -z "$SHIB_UTIL_CLASSPATH" ] ; then
-        SHIB_UTIL_CLASSPATH=$i
-      else
-        SHIB_UTIL_CLASSPATH="$i":$SHIB_UTIL_CLASSPATH
-      fi
-    fi
-done
-SHIB_UTIL_CLASSPATH=$SHIB_UTIL_CLASSPATH:"$SHIB_HOME"
-
-##Here we go
-$JAVACMD -Djava.endorsed.dirs="$ENDORSED" -cp $SHIB_UTIL_CLASSPATH  edu.internet2.middleware.shibboleth.utils.MetadataTool "$@"
diff --git a/bin/metadatatool.bat b/bin/metadatatool.bat
deleted file mode 100755 (executable)
index 161d731..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-@echo off
-setlocal
-
-REM We need a JVM
-if not defined JAVA_HOME  (
-  echo Error: JAVA_HOME is not defined.
-  exit /b
-)
-
-if not defined JAVACMD (
-  set JAVACMD="%JAVA_HOME%\bin\java.exe"
-)
-
-if not exist %JAVACMD% (
-  echo Error: JAVA_HOME is not defined correctly.
-  echo Cannot execute %JAVACMD%
-  exit /b
-)
-
-set SHIB_HOME=
-if defined IDP_HOME (
-  set SHIB_HOME=%IDP_HOME%
-)
-if defined SP_HOME (
-  set SHIB_HOME=%SP_HOME%
-)
-if not defined SHIB_HOME (
-  echo Error: Neither IDP_HOME nor SP_HOME is defined.
-  exit /b
-  set SHIB_HOME=.
-)
-
-set ENDORSED=%SHIB_HOME%\endorsed
-
-if not exist %SHIB_HOME%\lib\shib-util.jar (
-  echo Error: Cannot find shib-util.jar
-  echo                 If you downloaded the shibboleth source, you need to run "ant build-util"
-  exit /b
-)
-
-REM Grab all the dependencies
-if defined CLASSPATH (
-  set LOCALCLASSPATH=%CLASSPATH%
-)
-
-REM add in the dependency .jar files
-for %%i in (%SHIB_HOME%\lib\*.jar) do (
-       call %SHIB_HOME%\bin\cpappend.bat %%i
-)
-
-REM Here we go
-%JAVACMD% -Djava.endorsed.dirs="%ENDORSED%" -cp "%LOCALCLASSPATH%" edu.internet2.middleware.shibboleth.utils.MetadataTool %*
-
similarity index 100%
rename from bin/cpappend.bat
rename to cpappend.bat
similarity index 100%
rename from bin/extkeytool
rename to extkeytool
similarity index 100%
rename from bin/extkeytool.bat
rename to extkeytool.bat
similarity index 100%
rename from bin/resolvertest
rename to resolvertest
similarity index 100%
rename from bin/resolvertest.bat
rename to resolvertest.bat