Sign up to create your own snipts, or login.

Public snipts » ln The latest public ln snipts.

showing 1-2 of 2 snipts for ln
  • Replace directory symlink
    # Given symlink, target, replace it with a symlink the the directory, source
    # Tested only with directories, not sure how this would work for files
    # s - symbolic link
    # f - if the target exists, unlink it
    # h - do not follow target symlink, required for replacing a directory symlink
    ln -sfh source target
    

    copy | embed

    0 comments - tagged in  posted by jmakeig on Jan 06, 2010 at 6:46 p.m. EST
  • link into qmake file
    !isEmpty(LINK_ROOT_PATH) {
        createlink.commands = ln -sf $${INSTALL_ROOT_PATH}/$${BINARY_TARGET} $${LINK_ROOT_PATH}/$${BINARY_TARGET}
        QMAKE_EXTRA_TARGETS += createlink
        PRE_TARGETDEPS += createlink
    }
    

    copy | embed

    0 comments - tagged in  posted by spechard on Aug 25, 2009 at 7:45 a.m. EDT
Sign up to create your own snipts, or login.