* lib/Makefile.am (installcheck-local): To verify that the installed
scripts are actually executable, simply use 'test -x', instead of
resorting to perl and its '-x' file operator. Today, 'test -x'
should today be portable to any non-museum system. Since we are at
it, improve diagnostic in case of failure.
chmod +x "$(DESTDIR)$(scriptdir)/$$prog"; \
done
-## 'test -x' is not portable. So we use Perl instead. If Perl
-## doesn't exist, then this test is meaningless anyway.
installcheck-local:
- for file in $(dist_script_DATA); do \
- $(PERL) -e "exit ! -x '$(pkgvdatadir)/$$file';" || exit 1; \
- done
+ @for file in $(dist_script_DATA); do \
+ path="$(pkgvdatadir)/$$file"; \
+ test -x "$$path" || echo $$path; \
+ done \
+ | sed 's/$$/: not executable/' \
+ | grep . && exit 1; exit 0