freebsd-ports/sysutils/pkg_install-devel/pkg-req

22 lines
346 B
Text
Raw Normal View History

2004-06-30 12:31:45 +02:00
#!/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
2004-06-30 12:31:45 +02:00
case $2 in
INSTALL)
if [ %%OSVERSIONCHK%% ]; then
echo "$1: Your base pkg_install tools are already up-to-date."
2004-06-30 12:31:45 +02:00
exit 1
fi
;;
esac