Browse Source

docs: Include files are always searched at standard location, too.

This removes the need to specify the location where yml2 was unpacked or
installed as YML_PATH. So this now works:

   YML_PATH=/foo ./yml2proc --xml2yml

The standard system location <prefix>/share/yml2 is now always appended to
the include search path. If this path does not exist, the directory one
above the `backend.py` file is added, allowing the same behaviour for
uninstalled yml2.

In the Makefile enforce the .ysl2 files to be searched in the current
directory first.
some-fixes
Hartmut Goebel 5 years ago
parent
commit
1d0fd6c31f
2 changed files with 3 additions and 2 deletions
  1. +1
    -0
      features.en.yhtml2
  2. +2
    -2
      toolchain.en.yhtml2

+ 1
- 0
features.en.yhtml2 View File

@ -975,6 +975,7 @@ page "The Features" {
if the «YML_PATH» environment variable is set to a colon separated list of directories,
these directories are being searched for the given filename. Otherwise, the local
directory is searched.
The system location for «.yml2» and «.ysl2» files is always searched afterwards.
>>
p >>


+ 2
- 2
toolchain.en.yhtml2 View File

@ -87,6 +87,7 @@ page "The YML Toolchain" {
If «YML_PATH» is set to a colon separated ¬http://en.wikipedia.org/wiki/Path_(computing) path¬
list, then the `a href="features#including" code "include";` statement searches these paths.
If «YML_PATH» is not set, the local directory «.» is searched for files.
The system location for «.yml2» and «.ysl2» files is always searched afterwards.
>>
h2 id=processor > The YML/YSLT processor
@ -218,8 +219,6 @@ page "The YML Toolchain" {
p > Convert XML to normalized YML. Equivalent to -xy xml2yml.ysl2
p > The file xml2yml.ysl2 has to be in YML_PATH.
h3 > -V, --version
p >>
@ -233,6 +232,7 @@ page "The YML Toolchain" {
If «YML_PATH» is set to a colon separated ¬http://en.wikipedia.org/wiki/Path_(computing) path¬
list, then the `a href="features#including" code "include";` statement searches these paths.
If «YML_PATH» is not set, the local directory «.» is searched for files.
The system location for «.yml2» and «.ysl2» files is always searched afterwards.
>>
h2 id=recommended > Recommended external tools


Loading…
Cancel
Save