From: Egon W. <eg...@us...> - 2003-09-26 20:20:12
|
Update of /cvsroot/woc/woc2/source/publish/wml2html In directory sc8-pr-cvs1:/tmp/cvs-serv32045 Added Files: Makefile.am insert-item.in make-groups.in make-items.in make-woord.in Log Message: Added shell wrappers for Java code --- NEW FILE: Makefile.am --- bindir=${prefix}/bin/wml2html bin_SCRIPTS = \ make-items \ make-groups \ make-woord \ insert-item CLEANFILES= WMLreport.txt ${bin_SCRIPTS} --- NEW FILE: insert-item.in --- #! /bin/sh prefix="@prefix@" JAVA=@PATHTOJAVA@ PERL=@PATHTOPERL@ if (test $# = 1) then : else echo "syntax: insert-item <item.xml>" exit 1 fi if (test -d ${prefix}/web-docs/gui/items) then : else mkdir -p ${prefix}/web-docs/gui/items fi JARS=`ls -1 ../../lib/java/*.jar | ${PERL} -ne "s/\n|\r/:/g; print;"` OPTIONS="-r woc -R ${prefix}/bin/wml2html/repository_def.xml" # convert the unix path to windows if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "posix" ] ; then JARS=`cygpath --path --windows "$JARS"` OPTIONS=`cygpath --path --windows "$OPTIONS"` fi ${JAVA} -cp ${JARS} com.egonw.woc.tools.SimpleAddItem ${OPTIONS} $1 --- NEW FILE: make-groups.in --- #! /bin/sh prefix="@prefix@" JAVA=@PATHTOJAVA@ PERL=@PATHTOPERL@ JARS=`ls -1 ../../lib/java/*.jar | ${PERL} -ne "s/\n|\r/:/g; print;"` OPTIONS="-r ./repository_def.xml" # convert the unix path to windows if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "posix" ] ; then JARS=`cygpath --path --windows "$JARS"` OPTIONS=`cygpath --path --windows "$OPTIONS"` fi ${JAVA} -cp ${JARS} com.egonw.woc.tools.GroupFiles ${OPTIONS} --- NEW FILE: make-items.in --- #! /bin/sh JAVA=@PATHTOJAVA@ PERL=@PATHTOPERL@ JARS=`ls -1 ../../lib/java/*.jar | ${PERL} -ne "s/\n|\r/:/g; print;"` OPTIONS="-r `pwd`/repository_def.xml" # convert the unix path to windows if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "posix" ] ; then JARS=`cygpath --path --windows "$JARS"` OPTIONS=`cygpath --path --windows "$OPTIONS"` fi ${JAVA} -cp ${JARS} com.egonw.woc.tools.MaakLosseItems ${OPTIONS} --- NEW FILE: make-woord.in --- #! /bin/sh JAVA=@PATHTOJAVA@ PERL=@PATHTOPERL@ JARS=`ls -1 ../../lib/java/*.jar | ${PERL} -ne "s/\n|\r/:/g; print;"` OPTIONS="-r `pwd`/repository_def.xml" # convert the unix path to windows if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "posix" ] ; then JARS=`cygpath --path --windows "$JARS"` OPTIONS=`cygpath --path --windows "$OPTIONS"` fi ${JAVA} -cp ${JARS} com.egonw.woc.tools.Woord ${OPTIONS} |