- Provide a check/warning/fix for users that upgraded from an older release and missed UPDATING 20150213

Approved by:	portmgr (bapt)
This commit is contained in:
Ryan Steinmetz 2015-07-07 06:03:35 +00:00
parent 78226fbc1f
commit 041a8dd21d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=391492

View file

@ -7,6 +7,13 @@ if [ -z "${LIB_DIRS}" -o -z "${LOCALBASE}" ]; then
exit 1
fi
if [ -f /usr/share/misc/magic.mime -o -f /usr/share/misc/magic.mime.mgc ]; then
echo "Either /usr/share/misc/magic.mime or /usr/share/misc/mime.magic.mgc exist and must be removed." >&2
echo "These are legacy files from an older release and may safely be deleted." >&2
echo "Please see UPDATING 20150213 for more details." >&2
exit 1
fi
if [ $# -ne 1 ]; then
echo "$0: no argument provided." >&2
fi