Re: [tools-dev] How to checkout DEV300 branch correctly?
Hi Eric, On Monday 09 of June 2008, Eric Hoch wrote: > > print "export WORK_STAMP=" Master "; export CWS_WORK_STAMP=" CWS "; > > export SOLARENV=./solenv" "; echo `$SOLARENV/bin/cwsquery modules`" | > > Shell | getline modules > > This won't work for Mac OS X. I get the error: > > /usr/bin/awk: syntax error at source line 32 in function > queryMilestone source file ./conco.awk > context is > print "export WORK_STAMP=" Master "; export > CWS_WORK_STAMP=" CWS "; export SOLARENV=./solenv" "; echo > $SOLARENV/bin/cwsquery modules" | Shell >>> | <<< getline modules > /usr/bin/awk: illegal statement at source line 33 in function > queryMilestone source file ./conco.awk And when you do only: ENVIRON["SHELL"] = Shell "export WORK_STAMP=" Master "; export CWS_WORK_STAMP=" CWS "; export SOLARENV=./solenv" "; echo `$SOLARENV/bin/cwsquery modules`" | getline modules (no print and no Shell on the line)? Regards, Jan [no awk expert either ;-)] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tools-dev] How to checkout DEV300 branch correctly?
Hi Eric, On Saturday 07 of June 2008, Eric Hoch wrote: > Hi Mathias, Maho, > > Am Fri, 06 Jun 2008 17:58:30 +0200 schrieb Mathias Bauer: > > Hi Eric, > > > > Eric Hoch wrote: > >> Hi Mathias, > >> > >> Am Thu, 05 Jun 2008 13:48:47 +0200 schrieb Mathias Bauer: > >>> Hi, > >>> > >>> Maho NAKATA wrote: > Hi, > How I can checkout DEV300 branch (OOo3) source code correctly? > > According to CVSROOT/modules, > "OpenOffice3" alias does not contain > "apache-commons hyphen swext tomcat" etc etc. > > I have been put source code for every milestone at: > http://ooopackages.good-day.net/pub/OpenOffice.org/sources/ > and almost every build was checked on MacOSX and FreeBSD. > > Could you please help me? > Thanks > -- Nakata Maho http://accc.riken.jp/maho/ > >>> > >>> Do you know > >>> > >>> http://wiki.services.openoffice.org/wiki/User:Kr/Concurrent_Checkout > >>> > >>> I use it all the time. For a CWS on dev300 it needs an additional fix > >>> that I could give you, but for checking out a milestone it is fine. > >> > >> Thanks for the hint. I really didn't know that such a script > >> exists. > >> > >> But when I try to run it under Mac OS X I get the following error > >> message in Terminal: > >> > >> xdsl-87-79-55-98:test maveric$ ./conco.awk -v Master=DEV300 -v > >> Milestone=m17 > >> /usr/bin/awk: syntax error at source line 32 in function > >> queryMilestone source file ./conco.awk > >> context is > >> print "export > >> SOLARENV=./solenv">>> |& <<< Shell > >> /usr/bin/awk: illegal statement at source line 33 in function > >> queryMilestone source file ./conco.awk > >> /usr/bin/awk: illegal statement at source line 33 in function > >> queryMilestone source file ./conco.awk > > After some investigation I figured out that the script seems to > work for both Linux and Mac OS X if you replace all of the |&, > which > represents the Regular Expression of AND/OR, with a simple && which > just stands for AND. From what I see, '|&' is not AND/OR, but piped I/O (running command as co-process). The right fix would be to use normal '|' somehow - which pipes as well; most probably something like (written on one line): print "export WORK_STAMP=" Master "; export CWS_WORK_STAMP=" CWS "; export SOLARENV=./solenv" "; echo `$SOLARENV/bin/cwsquery modules`" | Shell | getline modules instead of: print "export WORK_STAMP=" Master |& Shell print "export CWS_WORK_STAMP=" CWS|& Shell print "export SOLARENV=./solenv" |& Shell print "echo `$SOLARENV/bin/cwsquery modules`" |& Shell Shell |& getline modules close(Shell) (untested, etc. - Kay will know more I guess.) Regards, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tools-dev] How to checkout DEV300 branch correctly?
Hi Mathias, Maho, Am Fri, 06 Jun 2008 17:58:30 +0200 schrieb Mathias Bauer: > Hi Eric, > > Eric Hoch wrote: > >> Hi Mathias, >> Am Thu, 05 Jun 2008 13:48:47 +0200 schrieb Mathias Bauer: >>> Hi, >>> >>> Maho NAKATA wrote: >>> Hi, How I can checkout DEV300 branch (OOo3) source code correctly? According to CVSROOT/modules, "OpenOffice3" alias does not contain "apache-commons hyphen swext tomcat" etc etc. I have been put source code for every milestone at: http://ooopackages.good-day.net/pub/OpenOffice.org/sources/ and almost every build was checked on MacOSX and FreeBSD. Could you please help me? Thanks -- Nakata Maho http://accc.riken.jp/maho/ >>> Do you know >>> >>> http://wiki.services.openoffice.org/wiki/User:Kr/Concurrent_Checkout >>> >>> I use it all the time. For a CWS on dev300 it needs an additional fix >>> that I could give you, but for checking out a milestone it is fine. >> >> >> Thanks for the hint. I really didn't know that such a script >> exists. >> >> But when I try to run it under Mac OS X I get the following error >> message in Terminal: >> >> xdsl-87-79-55-98:test maveric$ ./conco.awk -v Master=DEV300 -v >> Milestone=m17 >> /usr/bin/awk: syntax error at source line 32 in function >> queryMilestone source file ./conco.awk >> context is >> print "export >> SOLARENV=./solenv">>> |& <<< Shell >> /usr/bin/awk: illegal statement at source line 33 in function >> queryMilestone source file ./conco.awk >> /usr/bin/awk: illegal statement at source line 33 in function >> queryMilestone source file ./conco.awk After some investigation I figured out that the script seems to work for both Linux and Mac OS X if you replace all of the |&, which represents the Regular Expression of AND/OR, with a simple && which just stands for AND. According to various documentations on the web only gawk understands the |& as AND/OR while the awk comming with Mac OS X (most probably it should be the nawk) doesn't. So if AND/OR isn't really neccessary we can simply use the && as AND and both awk implementations will understand it and provide the checkout that hopefully contains everything to build any OOH and DEV300 Milestone. I haven't tested it with CWS yet but it should work and I couldn't test my changes under Cygwin. Eric -- ## de.OpenOffice.org - Office für MacOS X, Linux, Solaris & Windows ## Openoffice.org - ich steck mit drin! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tools-dev] How to checkout DEV300 branch correctly?
Hi Mathias, Am Fri, 06 Jun 2008 17:58:30 +0200 schrieb Mathias Bauer: > Hi Eric, > > Eric Hoch wrote: > >> Hi Mathias, >> Am Thu, 05 Jun 2008 13:48:47 +0200 schrieb Mathias Bauer: >>> Hi, >>> >>> Maho NAKATA wrote: >>> Hi, How I can checkout DEV300 branch (OOo3) source code correctly? According to CVSROOT/modules, "OpenOffice3" alias does not contain "apache-commons hyphen swext tomcat" etc etc. I have been put source code for every milestone at: http://ooopackages.good-day.net/pub/OpenOffice.org/sources/ and almost every build was checked on MacOSX and FreeBSD. Could you please help me? Thanks -- Nakata Maho http://accc.riken.jp/maho/ >>> Do you know >>> >>> http://wiki.services.openoffice.org/wiki/User:Kr/Concurrent_Checkout >>> >>> I use it all the time. For a CWS on dev300 it needs an additional fix >>> that I could give you, but for checking out a milestone it is fine. >> >> >> Thanks for the hint. I really didn't know that such a script >> exists. >> >> But when I try to run it under Mac OS X I get the following error >> message in Terminal: >> >> xdsl-87-79-55-98:test maveric$ ./conco.awk -v Master=DEV300 -v >> Milestone=m17 >> /usr/bin/awk: syntax error at source line 32 in function >> queryMilestone source file ./conco.awk >> context is >> print "export >> SOLARENV=./solenv">>> |& <<< Shell >> /usr/bin/awk: illegal statement at source line 33 in function >> queryMilestone source file ./conco.awk >> /usr/bin/awk: illegal statement at source line 33 in function >> queryMilestone source file ./conco.awk >> >> Yes, I am connected to the internet, as you can see I used the same >> arguments as stated in the wiki and yes I set CVSROOT. I even tried >> it with ssh tunnel but it still fails. >> >> I fear that it is because of the SOLARENV which may not exist in >> Mac OS X so what exactly is SOLARENV? >> >> Eric >> > > The script requires gawk and bash, perhaps you have used another awk Could be that Mac OS X doesn't come with gnu awk but with the one out of (Free)BSD which may be different to the gnu awk. > or > shell (like tcsh)? Sine bash is the default shell for OS X since 10.3 and I have a Mac that shipped with 10.4.8 pre-installed and now on 10.5.3 I assume that I use bash and to be sure I verified it and I started a bash shell by hand and both times the script still fails. > I must confess that I never used it on a Mac, only on > Windows (Cygwin) and Linux. I could install gnu awk via Macports but I would prefer to use the Mac OS X awk. Since I have no knowledge of awk I cannot tell how much effort it would make to adopt the script so that it runs on the BSD(?) awk as well. Do you think it would be a good idea to ask Kai directly? Eric -- ## de.OpenOffice.org - Office für MacOS X, Linux, Solaris & Windows ## Openoffice.org - ich steck mit drin! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tools-dev] How to checkout DEV300 branch correctly?
Hi Eric, Eric Hoch wrote: > Hi Mathias, > Am Thu, 05 Jun 2008 13:48:47 +0200 schrieb Mathias Bauer: >> Hi, >> >> Maho NAKATA wrote: >> >>> Hi, >>> How I can checkout DEV300 branch (OOo3) source code correctly? >>> >>> According to CVSROOT/modules, >>> "OpenOffice3" alias does not contain >>> "apache-commons hyphen swext tomcat" etc etc. >>> >>> I have been put source code for every milestone at: >>> http://ooopackages.good-day.net/pub/OpenOffice.org/sources/ >>> and almost every build was checked on MacOSX and FreeBSD. >>> >>> Could you please help me? >>> Thanks >>> -- Nakata Maho http://accc.riken.jp/maho/ >> Do you know >> >> http://wiki.services.openoffice.org/wiki/User:Kr/Concurrent_Checkout >> >> I use it all the time. For a CWS on dev300 it needs an additional fix >> that I could give you, but for checking out a milestone it is fine. > > > Thanks for the hint. I really didn't know that such a script > exists. > > But when I try to run it under Mac OS X I get the following error > message in Terminal: > > xdsl-87-79-55-98:test maveric$ ./conco.awk -v Master=DEV300 -v > Milestone=m17 > /usr/bin/awk: syntax error at source line 32 in function > queryMilestone source file ./conco.awk > context is > print "export > SOLARENV=./solenv">>> |& <<< Shell > /usr/bin/awk: illegal statement at source line 33 in function > queryMilestone source file ./conco.awk > /usr/bin/awk: illegal statement at source line 33 in function > queryMilestone source file ./conco.awk > > Yes, I am connected to the internet, as you can see I used the same > arguments as stated in the wiki and yes I set CVSROOT. I even tried > it with ssh tunnel but it still fails. > > I fear that it is because of the SOLARENV which may not exist in > Mac OS X so what exactly is SOLARENV? > > Eric > The script requires gawk and bash, perhaps you have used another awk or shell (like tcsh)? I must confess that I never used it on a Mac, only on Windows (Cygwin) and Linux. Ciao, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "[EMAIL PROTECTED]". I use it for the OOo lists and only rarely read other mails sent to it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tools-dev] How to checkout DEV300 branch correctly?
Hi Mathias, Am Thu, 05 Jun 2008 13:48:47 +0200 schrieb Mathias Bauer: > Hi, > > Maho NAKATA wrote: > >> Hi, >> How I can checkout DEV300 branch (OOo3) source code correctly? >> >> According to CVSROOT/modules, >> "OpenOffice3" alias does not contain >> "apache-commons hyphen swext tomcat" etc etc. >> >> I have been put source code for every milestone at: >> http://ooopackages.good-day.net/pub/OpenOffice.org/sources/ >> and almost every build was checked on MacOSX and FreeBSD. >> >> Could you please help me? >> Thanks >> -- Nakata Maho http://accc.riken.jp/maho/ > Do you know > > http://wiki.services.openoffice.org/wiki/User:Kr/Concurrent_Checkout > > I use it all the time. For a CWS on dev300 it needs an additional fix > that I could give you, but for checking out a milestone it is fine. Thanks for the hint. I really didn't know that such a script exists. But when I try to run it under Mac OS X I get the following error message in Terminal: xdsl-87-79-55-98:test maveric$ ./conco.awk -v Master=DEV300 -v Milestone=m17 /usr/bin/awk: syntax error at source line 32 in function queryMilestone source file ./conco.awk context is print "export SOLARENV=./solenv">>> |& <<< Shell /usr/bin/awk: illegal statement at source line 33 in function queryMilestone source file ./conco.awk /usr/bin/awk: illegal statement at source line 33 in function queryMilestone source file ./conco.awk Yes, I am connected to the internet, as you can see I used the same arguments as stated in the wiki and yes I set CVSROOT. I even tried it with ssh tunnel but it still fails. I fear that it is because of the SOLARENV which may not exist in Mac OS X so what exactly is SOLARENV? Eric -- ## de.OpenOffice.org - Office für MacOS X, Linux, Solaris & Windows ## Openoffice.org - ich steck mit drin! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tools-dev] How to checkout DEV300 branch correctly?
Hi, Maho NAKATA wrote: > Hi, > How I can checkout DEV300 branch (OOo3) source code correctly? > > According to CVSROOT/modules, > "OpenOffice3" alias does not contain > "apache-commons hyphen swext tomcat" etc etc. > > I have been put source code for every milestone at: > http://ooopackages.good-day.net/pub/OpenOffice.org/sources/ > and almost every build was checked on MacOSX and FreeBSD. > > Could you please help me? > Thanks > -- Nakata Maho http://accc.riken.jp/maho/ > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Do you know http://wiki.services.openoffice.org/wiki/User:Kr/Concurrent_Checkout I use it all the time. For a CWS on dev300 it needs an additional fix that I could give you, but for checking out a milestone it is fine. Ciao, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "[EMAIL PROTECTED]". I use it for the OOo lists and only rarely read other mails sent to it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]