Hello, Hans,

I've just renewed the Ctx Beta installation, but 'environment.oldhome' seems be unavailable.

Was I "too quick" with renewing Ctx?

Testing sample:

----
\starttext
  Ahoj
  \startluacode
    context(environment.oldhome or "??")
  \stopluacode
\stoptext
----

- prints "??".

I also attache the "status-of-update.lua" and the batch "first-setup.bat" (maybe a bit obsolete, but working so far) I used to renew Ctx.

Also result of "dir /s" is available here (~84 k packed):

  http://leteckaposta.cz/302654804

What am I doing wrong?

Best regards,

Lukas


On 2020-05-08 14:18, Hans Hagen wrote:

You can check it. Btw, when you're using lmtx there should be no real
differences between for instance unix and windows, although on windows
lmtx does support wide characters in environment variables, command
line arguments, filenames, filelinks etc. (not that that matters much
as one will seldom use more than ascii). Specific environment
variables like HOME are a bit tricky on windows as they come in
variants, so let me know if some more magic is needed.

Hans
\starttext
  Ahoj
  \startluacode
    context(environment.oldhome or "??")
  \stopluacode
\stoptext

Attachment: ChkEnv.pdf
Description: Adobe PDF document

-- generator : luat-sta.lua
-- state tag : whatever

return {
 ["context"]={
  ["version"]="beta",
 },
 ["engines"]={
  ["luatex"]=true,
  ["pdftex"]=true,
  ["xetex"]=true,
 },
 ["formats"]={
  ["cont-en"]=true,
  ["cont-nl"]=true,
  ["metafun"]=true,
 },
 ["info"]={
  ["comment"]="this file contains the settings of the last 'mtxrun --script 
update' run",
  ["count"]=138,
  ["date"]="2020-05-10 11:59:36",
  ["runtime"]=94.039,
  ["version"]=0.1,
 },
 ["modules"]={
  ["all"]=true,
 },
 ["paths"]={
  ["root"]="d:\\Ctx-Beta\\tex",
 },
 ["platforms"]={
  ["mswin"]=true,
  ["win64"]=true,
 },
 ["repositories"]={
  ["current"]=true,
 },
 ["rsync"]={
  ["flags"]={
   ["delete"]="--delete",
   ["normal"]="-rpztlv",
  },
  ["module"]="minimals",
  ["program"]="rsync",
  ["server"]="contextgarden.net::",
 },
}
@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;%CONTEXTROOT%\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

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to