Skip to content

Commit

Permalink
Make script path available to R (#122)
Browse files Browse the repository at this point in the history
* Set an environment variable giving the path to the script file, if relevant

* Normalise the script path (if realpath() is available and working)

* Add changelog entry and brief man-page section
  • Loading branch information
jonclayden authored Jan 17, 2025
1 parent e9013f1 commit 63dd230
Show file tree
Hide file tree
Showing 6 changed files with 349 additions and 257 deletions.
15 changes: 15 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
2025-01-17 Jon Clayden <[email protected]>

* src/littler.c: Set the LITTLER_SCRIPT_PATH environment variable to the
script's normalized path, when 'r' is used in a shebang line. This makes
the run-time path available to the script.

* configure.ac: Add check for realpath function used by the facility above

* configure: Idem

* src/config.h.in: Idem

* inst/man-page/r.1: Brief documentation of the LITTLER_SCRIPT_PATH
environment variable described above

2024-11-01 Dirk Eddelbuettel <[email protected]>

* DESCRIPTION (Date, Version): Roll micro version and date
Expand Down
Loading

0 comments on commit 63dd230

Please sign in to comment.