Changeset 797 for trunk/Makefile


Ignore:
Timestamp:
11/03/20 15:38:37 (4 years ago)
Author:
Kris Deugau
Message:

/trunk

Clean up a lingering nuisance with Perl's default include path; all scripts
should now run correctly no matter what the caller's current directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r771 r797  
    100100        @mkdir -p $(DESTDIR)${datadir}/$(PKG_LEAF)/templates
    101101        @$(INSTALL_DATA) $(TEMPLATES) $(DESTDIR)${datadir}/$(PKG_LEAF)/templates
    102         @# munge in necessary 'use lib ...' bits so scripts can find libs and config...
    103         @# datadir is correct;  no arch-specific files
    104102        @for i in $(SCRIPTS) $(MODULES); do \
    105103                $(INSTALL_SCRIPT) -D $$i $(DESTDIR)${datadir}/$(PKG_LEAF)/$$i ; \
    106                 perl -pi -e "s|use lib '.';\s+##uselib##|use lib '${datadir}/$(PKG_LEAF)/';|;" $(DESTDIR)${datadir}/$(PKG_LEAF)/$$i ; \
    107104        done
    108105        @$(INSTALL) -d $(DESTDIR)${sysconfdir}/$(CFG_LEAF)/
Note: See TracChangeset for help on using the changeset viewer.