Ignore:
Timestamp:
Aug 8, 2011, 1:16:37 PM (9 years ago)
Author:
jmr@…
Message:

rearrange tcl package symlink creation to hopefully cover all possibilities

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/macports1.0/Makefile

    r79071 r82111  
    3434        echo "${TCL_PACKAGE_DIR}" > ${DESTDIR}${prefix}/var/macports/.tclpackage
    3535        if test -z "${DESTDIR}" -a "${INSTALLPKGLINK}" != "${INSTALLDIR}"; then \
    36                 if test ! -d "${TCL_PACKAGE_DIR}"; then \
    37                         $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} "${TCL_PACKAGE_DIR}" || true; \
    38                 fi; \
    39                 if test -w "${TCL_PACKAGE_DIR}"; then \
    40                         if test ! -L "${INSTALLPKGLINK}" && test -d "${INSTALLPKGLINK}"; then \
    41                                 rm -rf "${INSTALLPKGLINK}" || true; \
    42                         fi; \
    43                         if test ! -e "${INSTALLPKGLINK}"; then \
    44                                 ln -s "${INSTALLDIR}" "${INSTALLPKGLINK}" || true; \
    45                         fi; \
    46                 fi; \
     36                if test ! -L "${INSTALLPKGLINK}"; then \
     37            if test ! -e "${TCL_PACKAGE_DIR}"; then \
     38                $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} "${TCL_PACKAGE_DIR}" || true; \
     39            fi; \
     40            if test -d "${INSTALLPKGLINK}"; then \
     41                rm -vrf "${INSTALLPKGLINK}" || true; \
     42            fi; \
     43            if test ! -e "${INSTALLPKGLINK}"; then \
     44                ln -vs "${INSTALLDIR}" "${INSTALLPKGLINK}" || true; \
     45            fi; \
     46        fi; \
    4747        fi
Note: See TracChangeset for help on using the changeset viewer.