summaryrefslogtreecommitdiff
path: root/tex/context/base/core-sys.tex
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2006-01-09 00:00:00 +0100
committerHans Hagen <pragma@wxs.nl>2006-01-09 00:00:00 +0100
commite5b96502040aa3c41bbd6a175ce4316bf21d8570 (patch)
treec8d1f983bb2ce4c2b37e331645dacd9991d23df6 /tex/context/base/core-sys.tex
parent28b6768726b1fc30e1bae370cfa04632b52542c3 (diff)
downloadcontext-e5b96502040aa3c41bbd6a175ce4316bf21d8570.tar.gz
stable 2006.01.09
Diffstat (limited to 'tex/context/base/core-sys.tex')
-rw-r--r--tex/context/base/core-sys.tex23
1 files changed, 19 insertions, 4 deletions
diff --git a/tex/context/base/core-sys.tex b/tex/context/base/core-sys.tex
index b90f2305b..f75d03513 100644
--- a/tex/context/base/core-sys.tex
+++ b/tex/context/base/core-sys.tex
@@ -15,8 +15,9 @@
\unprotect
-\def\outputfilename{\@@svfile}
-\def\inputfilename {\@@svinputfile}
+\def\outputfilename {\@@svfile}
+\def\inputfilename {\@@svinputfile}
+\def\operatingsystem{\@@svtype}
\let\jobfilesuffix\c!tex
@@ -62,8 +63,17 @@
\or
\setsystemmode\v!last % 4 : extra last run
\fi
+ \processaction
+ [\@@svtype]
+ [ mswin=>\def\@@svline{\rawcharacter{13}\rawcharacter{10}}, % crlf
+ darwin=>\def\@@svline{\rawcharacter{13}}, % cr
+ \s!unknown=>\def\@@svline{\rawcharacter{10}}]% % lf
\splitjobfilename}
+\def\@@svline{\rawcharacter{10}} % unix is the most critical/sensitive system
+
+\def\systemendofline{\@@svline}
+
\def\setupsystem
{\dosingleargument\dosetupsystem}
@@ -89,8 +99,8 @@
[#1]
[ \v!small=>\divide\normaltime 15, % 900,
\v!medium=>\divide\normaltime 30, % 1800,
- \v!big=>\divide\normaltime 60, % 3600,
- \v!normal=>,
+ \v!big=>\divide\normaltime 60, % 3600,
+ \v!normal=>,
\s!default=>,
\s!unknown=>\normaltime=#1]%
\nextrandom
@@ -103,8 +113,13 @@
\c!random=,
\c!file=\jobname,
\c!inputfile=\outputfilename,
+ \c!type=unix, % windows is normally less sensitive to handle
\c!bodyfont=\normalizedlocalbodyfontsize] % of iets anders
+%D Remark: windows programs normally handle \type {cr|lf|crlf} but unix
+%D is more picky, so we default to the \type {cr}. I never understood why
+%D \type {crlf} was not used in all systems, since it makes most sense.
+
%D
\def\dostartglobaldefs#1#2%