Update of /cvsroot/woc/woc/bin/wml2html
In directory usw-pr-cvs1:/tmp/cvs-serv16753
Modified Files:
make-items.in make-groups.in make-woord.in
Log Message:
support for cygwin added
Index: make-items.in
===================================================================
RCS file: /cvsroot/woc/woc/bin/wml2html/make-items.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** make-items.in 15 Aug 2002 12:02:06 -0000 1.1
--- make-items.in 17 Aug 2002 11:43:36 -0000 1.2
***************
*** 3,9 ****
JAVA=@PATHTOJAVA@
PERL=@PATHTOPERL@
- JARS=`ls -1 ../../lib/java/*.jar | ${PERL} -ne "s/\n|\r/:/g; print;"`
OPTIONS="-r `pwd`/repository_def.xml"
${JAVA} -cp ${JARS} com.egonw.woc.tools.MaakLosseItems ${OPTIONS}
--- 3,16 ----
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}
Index: make-groups.in
===================================================================
RCS file: /cvsroot/woc/woc/bin/wml2html/make-groups.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** make-groups.in 15 Aug 2002 12:02:06 -0000 1.1
--- make-groups.in 17 Aug 2002 11:43:36 -0000 1.2
***************
*** 1,9 ****
#! /bin/sh
JAVA=@PATHTOJAVA@
PERL=@PATHTOPERL@
- JARS=`ls -1 ../../lib/java/*.jar | ${PERL} -ne "s/\n|\r/:/g; print;"`
OPTIONS="-r ./repository_def.xml"
${JAVA} -cp ${JARS} com.egonw.woc.tools.GroupFiles ${OPTIONS}
--- 1,18 ----
#! /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}
Index: make-woord.in
===================================================================
RCS file: /cvsroot/woc/woc/bin/wml2html/make-woord.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** make-woord.in 15 Aug 2002 12:02:06 -0000 1.1
--- make-woord.in 17 Aug 2002 11:43:36 -0000 1.2
***************
*** 7,9 ****
--- 7,16 ----
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}
|