bashrc (492B)
- #!/bin/bash
- if [ "${EBUILD_PHASE}" == "postinst" ] || [ "${EBUILD_PHASE}" == "postrm" ]; then
- echo ":: Calling makewhatis"
- makewhatis -Q -T utf8 ${MANPATH//:/ }
- fi
- if [ "${EBUILD_PHASE}" == "prepare" ]; then
- if grep -q -- '-bin$' <<<"${PN}"; then
- echo ":: *-bin package, not deblobbing"
- elif grep -q -- "${PN}" /etc/portage/go-deblob.reject; then
- echo ":: package is in /etc/portage/go-deblob.reject, not deblobbing"
- else
- go-deblob -e 'test*' -e '*/test*' -d "${WORKDIR}"
- fi
- fi