From 62faa5940aab52b3fd2615d335c46703d4b3f8b2 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Thu, 21 Apr 2016 13:12:22 +0000 Subject: [PATCH] Improve USES=shebangfix's documentation. Reviewed by: wblock Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D5949 --- .../books/porters-handbook/uses/chapter.xml | 53 +++++++++++++++---- 1 file changed, 44 insertions(+), 9 deletions(-) diff --git a/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml index 9b0662691a..85d839e8db 100644 --- a/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml +++ b/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml @@ -1167,16 +1167,51 @@ SHEBANG_FILES= scripts/foobar.pl scripts/*.sh Perl, PHP, Python, Ruby, Tcl, - and Tk are supported by default. To - support another interpreter, set - SHEBANG_LANG, - interp_OLD_CMD and - interp_CMD. For - example: + and Tk are supported by + default. - SHEBANG_LANG= lua -lua_OLD_CMD= /usr/bin/lua -lua_CMD= ${LOCALBASE}/bin/lua + There are three configuration variables: + + + + SHEBANG_LANG + + + The list of supported interpreters. + + + + + interp_CMD + + + The path to the command interpreter on &os;. The + default value is + ${LOCALBASE}/bin/interp. + + + + + interp_OLD_CMD + + The list of wrong invocations of interpreters. These + are typically obsolete paths, or paths used on other + operating systems that are incorrect on &os;. They + will be replaced by the correct path in + interp_CMD. + This list will always be part of + interp_OLD_CMD: + "/usr/bin/env interp" + /bin/interp + /usr/bin/interp. + + + + + To add another interpreter, set + SHEBANG_LANG. For example: + + SHEBANG_LANG= lua interp_OLD_CMD will contain multiple values. Any entry with spaces must be