Don't install rem2html if we don't have Perl.

This commit is contained in:
Dianne Skoll
2021-10-12 21:54:38 -04:00
parent 8a52f9b67d
commit 4b4acaadbb
2 changed files with 6 additions and 6 deletions

View File

@@ -12,7 +12,9 @@ all:
true
install:
@for m in $(PERLMODS_NEEDED) ; \
@if test "$(PERL)" = "" ; then \
echo "Not installing rem2html; Perl is required"; exit 0; fi; \
for m in $(PERLMODS_NEEDED) ; \
do \
perl -M$$m -e 1 > /dev/null 2>&1; \
if test $$? != 0 ; then echo "Not installing rem2html; missing $$m"; exit 0; fi; \

View File

@@ -1,13 +1,11 @@
REM2HTML
--------
Rem2HTML is a Perl script that transforms the output of `remind -p
rem2html is a Perl script that transforms the output of `remind -p
...' to HTML. Type `perl rem2html --help' for usage information.
Typical usage: remind -p ~/.reminders | rem2html > file.html
You may have to edit the "#!/usr/bin/perl" line to reflect the
location of your Perl interpreter.
rem2html requires the Perl modules `JSON::Any' and `Getopt::Long'. It
will not be installed unless you have those modules as well as Perl.
--
Dianne Skoll