ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* first-setup for windows
@ 2011-01-26 19:31 Mojca Miklavec
  2011-01-26 20:47 ` Procházka Lukáš
  2011-01-27 10:23 ` Hans Hagen
  0 siblings, 2 replies; 10+ messages in thread
From: Mojca Miklavec @ 2011-01-26 19:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 496 bytes --]

I would like to ask windows users to test the attached setup file if
it works any better (and to make sure that I didn't do any mistakes
while typing).

I have put the updated version of first-setup.sh on the server
already, but for Windows I simply don't dare to do it until somebody
confirms that it seems to be ok. In both cases it would be great to
get feedback if the problems with missing files are solved.

Mojca

PS: please remove the .txt ending (gmail doesn't allow sending .bat files)

[-- Attachment #2: first-setup.bat.txt --]
[-- Type: text/plain, Size: 1079 bytes --]

@echo off

setlocal

echo okay > ok.log
ruby -e "File.delete('ok.log')"
if not exist "ok.log" goto okay

echo.
echo You need to install Ruby first (if you want to use pdfTeX or XeTeX).
echo Fetching files anyway.
echo.

:okay


set OWNPATH=%~dp0
set CONTEXTROOT=%OWNPATH%tex

set PATH=%OWNPATH%bin;%CONTEXTPATH%\texmf-mswin\bin;%PATH%

set CYGWIN=nontsec

rsync -av --exclude 'rsync.exe' --exclude 'cygwin1.dll' --exclude 'cygiconv-2.dll' rsync://contextgarden.net/minimals/setup/mswin/bin/ bin

mtxrun --script ./bin/mtx-update.lua --force --update --make --engine=all --context=beta --texroot=%CONTEXTROOT% %*

echo.
echo When you want to use context, you need to initialize the tree with:
echo.
echo   %CONTEXTROOT%\setuptex.bat %CONTEXTROOT%
echo.
echo You can associate this command with a shortcut to the cmd prompt.
echo.

if not exist "ok.log" goto end

echo.
echo If you want to use pdfTeX or XeTeX you need to install Ruby first.
echo Remake formats or rerun this script afterwards.
echo.

del /q ok.log

:end

endlocal


[-- Attachment #3: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: first-setup for windows
  2011-01-26 19:31 first-setup for windows Mojca Miklavec
@ 2011-01-26 20:47 ` Procházka Lukáš
  2011-01-26 21:32   ` Mojca Miklavec
  2011-01-27 10:23 ` Hans Hagen
  1 sibling, 1 reply; 10+ messages in thread
From: Procházka Lukáš @ 2011-01-26 20:47 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 1256 bytes --]

Hello Mojca,

On Wed, 26 Jan 2011 20:31:47 +0100, Mojca Miklavec <mojca.miklavec.lists@gmail.com> wrote:

> I would like to ask windows users to test the attached setup file if
> it works any better (and to make sure that I didn't do any mistakes
> while typing).
>
> I have put the updated version of first-setup.sh on the server
> already, but for Windows I simply don't dare to do it until somebody
> confirms that it seems to be ok. In both cases it would be great to
> get feedback if the problems with missing files are solved.
>
> Mojca

I launched your modified first-setup.bat - it seems the latest Ctx version was updated successfully.

I also tried to compile some sample files - no problem.

OS: WinXP Home Edition, SP3.


BTW: It normally happens to me that I have to run 'mtxrun --generate' after I updated Ctx.

Not today (? - I don't know why); but normally I'm using a slightly modified 'first-setup.bat' calling mtxrun automatically.

So if you thought this would be useful (actually it may depend on whether an explicit 'mtxrun --generate' after update is necessary what I don't know - always reality shows me), it might be good to add the call to the end of first-setup.bat (see the attached first-setup-alt.bat).


Best regards,

Lukas

[-- Attachment #2: first-setup-alt.txt --]
[-- Type: text/plain, Size: 1076 bytes --]

@echo off

setlocal

echo okay > ok.log
ruby -e "File.delete('ok.log')"
if not exist "ok.log" goto okay

echo.
echo You need to install Ruby first (if you want to use pdfTeX or XeTeX).
echo Fetching files anyway.
echo.

:okay


set OWNPATH=%~dp0
set CONTEXTROOT=%OWNPATH%tex

set PATH=%OWNPATH%bin;%CONTEXTPATH%\texmf-mswin\bin;%PATH%

set CYGWIN=nontsec

rsync -av --exclude 'rsync.exe' --exclude 'cygwin1.dll' --exclude 'cygiconv-2.dll' rsync://contextgarden.net/minimals/setup/mswin/bin/ bin

mtxrun --script ./bin/mtx-update.lua --force --update --make --engine=all --context=beta --texroot=%CONTEXTROOT% %*

echo.
echo When you want to use context, you need to initialize the tree with:
echo.
echo   %CONTEXTROOT%\setuptex.bat %CONTEXTROOT%
echo.
echo You can associate this command with a shortcut to the cmd prompt.
echo.

if not exist "ok.log" goto end

echo.
echo If you want to use pdfTeX or XeTeX you need to install Ruby first.
echo Remake formats or rerun this script afterwards.
echo.

del /q ok.log

:end

endlocal

call tex/setuptex.bat

mtxrun.exe --generate

[-- Attachment #3: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: first-setup for windows
  2011-01-26 20:47 ` Procházka Lukáš
@ 2011-01-26 21:32   ` Mojca Miklavec
  2011-01-28  7:43     ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 1 reply; 10+ messages in thread
From: Mojca Miklavec @ 2011-01-26 21:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2011/1/26 Procházka Lukáš <lpr@pontex.cz>:
> Hello Mojca,
>
> I launched your modified first-setup.bat - it seems the latest Ctx version
> was updated successfully.

Thanks a lot for testing ...

> BTW: It normally happens to me that I have to run 'mtxrun --generate' after
> I updated Ctx.

(or that format generation breaks ...)

> So if you thought this would be useful (actually it may depend on whether an
> explicit 'mtxrun --generate' after update is necessary what I don't know -

It *is* necessary if some new files appear. The problem was that
usually the wrong mtxrun was called which had zero effect since it
possibly updated the cache in TeX Live or some other ConTeXt
distribution (under another path).

You can try the following:
- make sure that there is no tex in your path (set PATH ...)
- delete texmf-cache
- delete some files (for example context.mkiv and a few random other files)
- call first-setup.bat (the modified version that I sent you without
an explicit mtxrun --generate)
- call setuptex (or manually set PATH)
- try to compile some file

The mtxrun --generate at the end of script doesn't really help since
already the format generation is broken if some new files arrive.

Thanks,
    Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: first-setup for windows
  2011-01-26 19:31 first-setup for windows Mojca Miklavec
  2011-01-26 20:47 ` Procházka Lukáš
@ 2011-01-27 10:23 ` Hans Hagen
  2011-01-27 12:27   ` Mojca Miklavec
  1 sibling, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2011-01-27 10:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mojca Miklavec

On 26-1-2011 8:31, Mojca Miklavec wrote:
> I would like to ask windows users to test the attached setup file if
> it works any better (and to make sure that I didn't do any mistakes
> while typing).
>
> I have put the updated version of first-setup.sh on the server
> already, but for Windows I simply don't dare to do it until somebody
> confirms that it seems to be ok. In both cases it would be great to
> get feedback if the problems with missing files are solved.
>
> Mojca
>
> PS: please remove the .txt ending (gmail doesn't allow sending .bat files)

staring at it ... CONTEXTPATH and CONTEXTROOT are used but only one is 
defined


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: first-setup for windows
  2011-01-27 10:23 ` Hans Hagen
@ 2011-01-27 12:27   ` Mojca Miklavec
  0 siblings, 0 replies; 10+ messages in thread
From: Mojca Miklavec @ 2011-01-27 12:27 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

> staring at it ... CONTEXTPATH and CONTEXTROOT are used but only one is
> defined

Thanks a lot for noticing. It was just a typo, fixed (but maybe not
yet updated on the server).

Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: first-setup for windows
  2011-01-26 21:32   ` Mojca Miklavec
@ 2011-01-28  7:43     ` Procházka Lukáš Ing. - Pontex s. r. o.
  2011-01-28 15:29       ` Mojca Miklavec
  0 siblings, 1 reply; 10+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2011-01-28  7:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear Mojca,

On Wed, 26 Jan 2011 22:32:34 +0100, Mojca Miklavec <mojca.miklavec.lists@gmail.com> wrote:

>> So if you thought this would be useful (actually it may depend on whether an
>> explicit 'mtxrun --generate' after update is necessary what I don't know -
>
> It *is* necessary if some new files appear. The problem was that
> usually the wrong mtxrun was called which had zero effect since it
> possibly updated the cache in TeX Live or some other ConTeXt
> distribution (under another path).
>
> You can try the following:
> - make sure that there is no tex in your path (set PATH ...)
> - delete texmf-cache
> - delete some files (for example context.mkiv and a few random other files)
> - call first-setup.bat (the modified version that I sent you without
> an explicit mtxrun --generate)
> - call setuptex (or manually set PATH)
> - try to compile some file
>
> The mtxrun --generate at the end of script doesn't really help since
> already the format generation is broken if some new files arrive.

I updated Ctx yesterday.

I installed the new version of Ctx to an empty directory and I checked all TeX-related PATHs to not point to any TL directory (actually, the PATH doesn't point to any TL or Ctx directory - all this is performed by an appropriate batch which is called in the scope and just before compilation of a Ctx source); so I guess all previous auto-generated files and/or cache got unused.

I wrote a step-by-step report which I intended to send to you as I was "afraid" that I would have to call 'mtxrun --generate' explicitly.

But it was not necessary - I was able to compile a sample Ctx source without any problem "as it was".

Not today.

Now, if I want to compile a Ctx file, I'm getting:

---
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
---

I know that 'mtxrun --generate' will repair this (as it always did so far).

- But I'm wondering about why 'mtxrun' doesn't find the 'context.lua' today although it did yesterday.

(I'm aware of cache directory, in my case at 'c:\ConTeXt\tex\texmf-cache\luatex-cache\context\f53042fa2e1c106bc7e3383ec8c3a00c\'. Does Ctx/mxtrun generate also any [temporary] files elsewhere, e.g. in "Document and Settings" or "Application Data" or where TMP/TEMP system variable points?)

Could you explain, please?

Best regards,

Lukas


-- 
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: first-setup for windows
  2011-01-28  7:43     ` Procházka Lukáš Ing. - Pontex s. r. o.
@ 2011-01-28 15:29       ` Mojca Miklavec
  2011-01-28 15:57         ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 1 reply; 10+ messages in thread
From: Mojca Miklavec @ 2011-01-28 15:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2011/1/28 Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>:
>
> - But I'm wondering about why 'mtxrun' doesn't find the 'context.lua' today
> although it did yesterday.

No idea. ConTeXt beta didn't change since yesterday at all.

> (I'm aware of cache directory, in my case at
> 'c:\ConTeXt\tex\texmf-cache\luatex-cache\context\f53042fa2e1c106bc7e3383ec8c3a00c\'.
> Does Ctx/mxtrun generate also any [temporary] files elsewhere, e.g. in
> "Document and Settings" or "Application Data" or where TMP/TEMP system
> variable points?)

No. In MikTeX the cache is generated somewhere else, but ConTeXt
doesn't touch anything. (Vyatcheslav's installer sets PATH, but normal
installer doesn't.)

> Could you explain, please?

I don't know what the explanation could be. I tried to delete
texmf-cache and run the installer again, but I didn't experience any
problem. (Yesterday first-setup.bat file was a bit faulty, but now it
should be fixed.)

Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: first-setup for windows
  2011-01-28 15:29       ` Mojca Miklavec
@ 2011-01-28 15:57         ` Procházka Lukáš Ing. - Pontex s. r. o.
  2011-01-28 16:06           ` Mojca Miklavec
  2011-01-28 17:54           ` Hans Hagen
  0 siblings, 2 replies; 10+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2011-01-28 15:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, 28 Jan 2011 16:29:03 +0100, Mojca Miklavec <mojca.miklavec.lists@gmail.com> wrote:

> 2011/1/28 Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>:
>>
>> - But I'm wondering about why 'mtxrun' doesn't find the 'context.lua' today
>> although it did yesterday.

(I forgot to notice that the computer was powered-off once (= yesterday) and started up again (= today morning).

So yesterday, the whole day after the update I was able to compile any Ctx source. Than the computer was powered off. Today the computer was started and when I tried to compile the same Ctx sources, I got "cannot find context.lua nor mtx-context.lua". I had to run "mtxrun --generate" and all started to work again. And it will be all right till the next update.)

> No idea. ConTeXt beta didn't change since yesterday at all.

OK. I'll keep on observing and trying to figure out why.

> (Yesterday first-setup.bat file was a bit faulty, but now it
> should be fixed.)
>

Does first-setup.bat update itself? I mean: several days ago you sent a slightly modified 'first-setup.bat' by e-mail and later you have modified it again. So just to be sure I'm not or I won't be using the "not so perfect" 'first-setup.bat[.txt]'...

Best regards,

Lukas


-- 
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: first-setup for windows
  2011-01-28 15:57         ` Procházka Lukáš Ing. - Pontex s. r. o.
@ 2011-01-28 16:06           ` Mojca Miklavec
  2011-01-28 17:54           ` Hans Hagen
  1 sibling, 0 replies; 10+ messages in thread
From: Mojca Miklavec @ 2011-01-28 16:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2011/1/28 Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>:
>
> Does first-setup.bat update itself?

No. The idea is that the file should not change anyway (and you might
want to modify it yourself by changing version of context or by
removing the --make switch for example).

> I mean: several days ago you sent a
> slightly modified 'first-setup.bat' by e-mail and later you have modified it
> again.

Yes. Because Hans noticed a typo and I fixed that one.

> So just to be sure I'm not or I won't be using the "not so perfect"
> 'first-setup.bat[.txt]'...

Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: first-setup for windows
  2011-01-28 15:57         ` Procházka Lukáš Ing. - Pontex s. r. o.
  2011-01-28 16:06           ` Mojca Miklavec
@ 2011-01-28 17:54           ` Hans Hagen
  1 sibling, 0 replies; 10+ messages in thread
From: Hans Hagen @ 2011-01-28 17:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 28-1-2011 4:57, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

>>> - But I'm wondering about why 'mtxrun' doesn't find the 'context.lua'
>>> today
>>> although it did yesterday.
>
> (I forgot to notice that the computer was powered-off once (= yesterday)
> and started up again (= today morning).

the only thing i can think is a change in path settings when the 
computer was on; there is nothing persistent in memory (would be too 
clever)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-01-28 17:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-26 19:31 first-setup for windows Mojca Miklavec
2011-01-26 20:47 ` Procházka Lukáš
2011-01-26 21:32   ` Mojca Miklavec
2011-01-28  7:43     ` Procházka Lukáš Ing. - Pontex s. r. o.
2011-01-28 15:29       ` Mojca Miklavec
2011-01-28 15:57         ` Procházka Lukáš Ing. - Pontex s. r. o.
2011-01-28 16:06           ` Mojca Miklavec
2011-01-28 17:54           ` Hans Hagen
2011-01-27 10:23 ` Hans Hagen
2011-01-27 12:27   ` Mojca Miklavec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).