diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-07-22 07:42:49 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-07-22 07:42:49 -0700 |
commit | c1f3675dc5616f25698dbc4cd712495bcf3fc6ac (patch) | |
tree | 49bf86dec2e77d9926fa4ba7bf00d84599488495 | |
parent | 8656762261648b940bb5bb858933badd06b69c6b (diff) | |
download | txr-c1f3675dc5616f25698dbc4cd712495bcf3fc6ac.tar.gz txr-c1f3675dc5616f25698dbc4cd712495bcf3fc6ac.tar.bz2 txr-c1f3675dc5616f25698dbc4cd712495bcf3fc6ac.zip |
doc: eliminate example uses of obsolete txr-path.
* txr.1: In the --args example, don't use txr-path, but
txr-exe-path. Also, path-cat instead of plain string
catenation. The example for save-exe was additionally doing
something wrong: taking the dir-name of txr-path, which would
calculate the parent of the executable directory. This example
is harmonized with the --args one.
-rw-r--r-- | txr.1 | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -68620,7 +68620,7 @@ executable can then be edited so that the data area which follows the bytes contains the following string: .verb - --args|-e|(load `@{txr-path}main.tl`) + --args|-e|(load (path-cat (dir-name txr-exe-path) "main.tl")) .brev When the @@ -68718,8 +68718,9 @@ which will load a file called that is located in the same directory. .verb - (save-exe "myapp" - "--args|-e|(load `@(dir-name txr-path)/main.tl`)") + (save-exe + "myapp" + "--args|-e|(load (path-cat (dir-name txr-exe-path) \e"main.tl\e"))") .brev .SH* DEBUGGER |