Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Scripts/create-manifest.sh
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | for prepost in '' PRE POST; do | ||||
done | done | ||||
done | done | ||||
done | done | ||||
# *** STARTING NOW, STDOUT is +DISPLAY *** | # *** STARTING NOW, STDOUT is +DISPLAY *** | ||||
exec >${dp_METADIR}/+DISPLAY | exec >${dp_METADIR}/+DISPLAY | ||||
echo '[' | |||||
for message in ${dp_PKGMESSAGES}; do | for message in ${dp_PKGMESSAGES}; do | ||||
[ -f "${message}" ] && cat "${message}" | if [ -f "${message}" ]; then | ||||
#if if starts with [ then it is ucl and we do drop last and first line | |||||
if head -1 "${message}" | grep -q '^\['; then | |||||
sed '1d;$d' "${message}" | |||||
else | |||||
echo '{message=<<EOD' | |||||
cat "${message}" | |||||
printf 'EOD\n},\n' | |||||
fi | |||||
fi | |||||
done | done | ||||
# Try and keep these messages in sync with check-deprecated | # Try and keep these messages in sync with check-deprecated | ||||
if [ ${dp_MAINTAINER} = "ports@FreeBSD.org" ]; then | if [ ${dp_MAINTAINER} = "ports@FreeBSD.org" ]; then | ||||
if [ -f "${dp_METADIR}/+DISPLAY" ]; then echo; fi | |||||
cat <<-EOT | cat <<-EOT | ||||
{ message=<<EOD | |||||
===> NOTICE: | ===> NOTICE: | ||||
The ${dp_PKGBASE} port currently does not have a maintainer. As a result, it is | The ${dp_PKGBASE} port currently does not have a maintainer. As a result, it is | ||||
more likely to have unresolved issues, not be up-to-date, or even be removed in | more likely to have unresolved issues, not be up-to-date, or even be removed in | ||||
the future. To volunteer to maintain this port, please create an issue at: | the future. To volunteer to maintain this port, please create an issue at: | ||||
https://bugs.freebsd.org/bugzilla | https://bugs.freebsd.org/bugzilla | ||||
More information about port maintainership is available at: | More information about port maintainership is available at: | ||||
https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port | https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port | ||||
EOD | |||||
}, | |||||
EOT | EOT | ||||
fi | fi | ||||
if [ -n "${dp_DEPRECATED}" ]; then | if [ -n "${dp_DEPRECATED}" ]; then | ||||
if [ -f "${dp_METADIR}/+DISPLAY" ]; then echo; fi | |||||
cat <<-EOT | cat <<-EOT | ||||
{ message=<<EOD | |||||
===> NOTICE: | ===> NOTICE: | ||||
This port is deprecated; you may wish to reconsider installing it: | This port is deprecated; you may wish to reconsider installing it: | ||||
${dp_DEPRECATED}. | ${dp_DEPRECATED}. | ||||
EOT | EOT | ||||
if [ -n "${dp_EXPIRATION_DATE}" ]; then | if [ -n "${dp_EXPIRATION_DATE}" ]; then | ||||
cat <<-EOT | cat <<-EOT | ||||
It is scheduled to be removed on or after ${dp_EXPIRATION_DATE}. | It is scheduled to be removed on or after ${dp_EXPIRATION_DATE}. | ||||
EOT | EOT | ||||
fi | fi | ||||
printf 'EOD\n},\n' | |||||
fi | fi | ||||
echo ']' | |||||
if [ ! -s ${dp_METADIR}/+DISPLAY ]; then | |||||
rm -f ${dp_METADIR}/+DISPLAY | |||||
fi |