x-to-1: Honor $PERL
* tools/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets a chance to use his preferred version of Perl. This is typically required by Darwin users whose default /usr/bin/perl do not have all the libraries required by help2man, and who need to use their MacPorts installation of Perl instead.
This commit is contained in:
parent
41265cd94f
commit
b3d8b0198f
1 changed files with 2 additions and 2 deletions
|
|
@ -44,9 +44,9 @@ progname=`basename $aux .x`
|
||||||
case "$PERL" in *"/missing perl") perlok=no;; *) perlok=yes;; esac
|
case "$PERL" in *"/missing perl") perlok=no;; *) perlok=yes;; esac
|
||||||
if test @CROSS_COMPILING@ = no && test -f $executable && test $perlok = yes; then
|
if test @CROSS_COMPILING@ = no && test -f $executable && test $perlok = yes; then
|
||||||
echo "Updating man page $output"
|
echo "Updating man page $output"
|
||||||
echo "$HELP2MAN --include=$aux $executable > $output"
|
echo "$PERL $HELP2MAN --include=$aux $executable > $output"
|
||||||
rm -f t-$progname.1
|
rm -f t-$progname.1
|
||||||
$HELP2MAN --include=$aux $executable > t-$progname.1 || exit 1
|
$PERL $HELP2MAN --include=$aux $executable > t-$progname.1 || exit 1
|
||||||
if test -n "$update"; then
|
if test -n "$update"; then
|
||||||
# In --update mode, don't overwrite the output if nothing would change.
|
# In --update mode, don't overwrite the output if nothing would change.
|
||||||
if cmp t-$progname.1 $output >/dev/null 2>&1; then
|
if cmp t-$progname.1 $output >/dev/null 2>&1; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue