Skip to content

Commit

Permalink
check: Check perl program syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
hramrach committed Feb 17, 2024
1 parent 7b6689f commit c496749
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,14 @@ MANPAGES := $(LIBMAN3FILES) $(LIBMAN5FILES) $(PROGDETECTMAN8FILES) $(PROGDUMPMAN

check:: test

test:: shellcheck test-sensors test-lib
test:: shellcheck perlcheck test-sensors test-lib

shellcheck::
shellcheck $(SHELLCHECKFILES)

perlcheck::
for i in $(PERL_SOURCES) ; do perl -c $$i ; done

test-lib:: lib/test/test-scanner
cd lib/test ; ./test-scanner.pl

Expand Down
2 changes: 2 additions & 0 deletions etc/Module.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
# installed; typically /etc).
ETC_DIR := etc

PERL_SOURCES += $(ETC_DIR)/sensors-conf-convert

install-etc:
$(MKDIR) $(DESTDIR)$(ETCDIR) $(DESTDIR)$(ETCDIR)/sensors.d
if [ ! -e $(DESTDIR)$(ETCDIR)/sensors3.conf ] ; then \
Expand Down
2 changes: 2 additions & 0 deletions prog/detect/Module.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ REMOVEDETECTBIN := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(SBINDIR)/%,$(PROGDETEC
REMOVEDETECTMAN := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(PROGDETECTMAN8DIR)/%,$(PROGDETECTMAN8FILES))
REMOVEDETECTZSH := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(ZSHCOMPDIR)/%,$(PROGDETECTZSHCOMPFILES))

PERL_SOURCES += $(PROGDETECTSBININSTALL)

all-prog-detect:
user :: all-prog-detect

Expand Down

0 comments on commit c496749

Please sign in to comment.