aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorzi <zi@FreeBSD.org>2015-07-07 14:03:35 +0800
committerzi <zi@FreeBSD.org>2015-07-07 14:03:35 +0800
commitad9f90de678c558ab9f88f5a28d30e2993a22363 (patch)
tree4868dd71f9fcfdb431250bb8108bd2d27034d21e /Mk
parenta59315d159526aacd0d5d34c98cf8014fec08534 (diff)
downloadfreebsd-ports-gnome-ad9f90de678c558ab9f88f5a28d30e2993a22363.tar.gz
freebsd-ports-gnome-ad9f90de678c558ab9f88f5a28d30e2993a22363.tar.zst
freebsd-ports-gnome-ad9f90de678c558ab9f88f5a28d30e2993a22363.zip
- Provide a check/warning/fix for users that upgraded from an older release and missed UPDATING 20150213
Approved by: portmgr (bapt)
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Scripts/find-lib.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/Mk/Scripts/find-lib.sh b/Mk/Scripts/find-lib.sh
index 5bdc5dfeb3fd..4ac39f67e113 100644
--- a/Mk/Scripts/find-lib.sh
+++ b/Mk/Scripts/find-lib.sh
@@ -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