Skip to content

Instantly share code, notes, and snippets.

@dnaeon
Created July 3, 2012 09:24
Show Gist options
  • Save dnaeon/3038722 to your computer and use it in GitHub Desktop.
Save dnaeon/3038722 to your computer and use it in GitHub Desktop.
# PORT
ifdef (WITH_ETCSHELLS)
@${ECHO_MSG} "===> Updating ${SHELLS}"
@${CP} ${SHELLS} ${SHELLS}.bak
@(${GREP} -v ${PREFIX}/libexec/git-core/git-shell ${SHELLS}.bak; \
${ECHO_CMD} ${PREFIX}/libexec/git-core/git-shell) > ${SHELLS}
@${RM} ${SHELLS}.bak
# PKGNG
echo "Updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v /usr/local/libexec/git-core/git-stage /etc/shells.bak; echo /usr/local/libexec/git-core/git-stage) >/etc/shells; rm -f /etc/shells.bak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment