1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

check for a working tr(1).

This commit is contained in:
Oliver Eikemeier 2004-07-13 19:36:15 +00:00
parent fb91f80fb8
commit 76de274928
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=113581
4 changed files with 18 additions and 0 deletions

View File

@ -47,6 +47,10 @@ post-install:
@${CAT} ${PKGMESSAGE}
activate:
@if [ "`${ECHO_CMD} FreeBSD | ${TR} -s .`" != "FreeBSD" ]; then \
${ECHO_MSG} "tr(1) is broken."; \
${FALSE}; \
fi
@${GREP} -qs PORTMK /usr/share/mk/bsd.port.mk || \
${PATCH} -s -N -d /usr/share/mk -i ${PORTMK_PATCH} && \
${ECHO_MSG} ">> Configured bsd.port.mk."

View File

@ -23,5 +23,10 @@ INSTALL)
echo "${PKG_INFO} is too old, please update port sysutils/pkg_install-devel"
exit 1
fi
if [ "`echo FreeBSD | tr -s .`" != "FreeBSD" ]; then
echo "tr(1) is broken."
exit 1
fi
;;
esac

View File

@ -47,6 +47,10 @@ post-install:
@${CAT} ${PKGMESSAGE}
activate:
@if [ "`${ECHO_CMD} FreeBSD | ${TR} -s .`" != "FreeBSD" ]; then \
${ECHO_MSG} "tr(1) is broken."; \
${FALSE}; \
fi
@${GREP} -qs PORTMK /usr/share/mk/bsd.port.mk || \
${PATCH} -s -N -d /usr/share/mk -i ${PORTMK_PATCH} && \
${ECHO_MSG} ">> Configured bsd.port.mk."

View File

@ -23,5 +23,10 @@ INSTALL)
echo "${PKG_INFO} is too old, please update port sysutils/pkg_install-devel"
exit 1
fi
if [ "`echo FreeBSD | tr -s .`" != "FreeBSD" ]; then
echo "tr(1) is broken."
exit 1
fi
;;
esac