Ignore:
Timestamp:
Aug 31, 2012, 6:44:36 PM (8 years ago)
Author:
cal@…
Message:

base: quote usage of $DESTDIR and $localstatedir in Makefile.in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/Makefile.in

    r90002 r97239  
    3333
    3434install::
    35         [ ! -f $(DESTDIR)${sysconfdir}/macports/mp_version ] || rm -vf $(DESTDIR)${sysconfdir}/macports/mp_version
    36         $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 setupenv.bash  $(DESTDIR)${datadir}/macports/
    37         $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 macports-pubkey.pem  $(DESTDIR)${datadir}/macports/
     35        [ ! -f "$(DESTDIR)${sysconfdir}/macports/mp_version" ] || rm -vf "$(DESTDIR)${sysconfdir}/macports/mp_version"
     36        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 setupenv.bash  "$(DESTDIR)${datadir}/macports/"
     37        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 macports-pubkey.pem  "$(DESTDIR)${datadir}/macports/"
    3838# Only run these scripts when not building in a destroot
    3939ifeq ($(DESTDIR),)
     
    6565                ${DSCL} -q . -create /Users/${RUNUSR} Password \* ; \
    6666                ${DSCL} -q . -create /Users/${RUNUSR} PrimaryGroupID $$(${DSCL} -q . -read /Groups/${RUNUSR} PrimaryGroupID | /usr/bin/awk '{print $$2}') ; \
    67                 ${DSCL} -q . -create /Users/${RUNUSR} NFSHomeDirectory ${localstatedir}/macports/home ; \
     67                ${DSCL} -q . -create /Users/${RUNUSR} NFSHomeDirectory "${localstatedir}/macports/home" ; \
    6868                ${DSCL} -q . -create /Users/${RUNUSR} UserShell /usr/bin/false ; \
    6969            else \
     
    7474            if test `id -u` -eq 0; then \
    7575                echo "Updating home directory location for user \"${RUNUSR}\"" ; \
    76                 ${DSCL} -q . -create /Users/${RUNUSR} NFSHomeDirectory ${localstatedir}/macports/home ; \
     76                ${DSCL} -q . -create /Users/${RUNUSR} NFSHomeDirectory "${localstatedir}/macports/home" ; \
    7777            else \
    7878                echo "Not updating home directory location for user \"${RUNUSR}\" (not root)" ; \
Note: See TracChangeset for help on using the changeset viewer.