1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/ports-mgmt/pkg_install-devel/pkg-req
2004-08-13 17:01:01 +00:00

22 lines
346 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
if [ -z "$OSVERSION" ]; then
if [ -x /sbin/sysctl ]; then
OSVERSION=`/sbin/sysctl -n kern.osreldate`
else
OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
fi
fi
case $2 in
INSTALL)
if [ %%OSVERSIONCHK%% ]; then
echo "$1: Your base pkg_install tools are already up-to-date."
exit 1
fi
;;
esac