head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2003.12.31.14.12.34;	author mtm;	state Exp;
branches;
next	;


desc
@@


1.1
log
@It's not usually very important to know what version
of what is installed on FreeBSD. uname -a usually
has all you need to know. Also, remove those commands
not found on a FreeBSD box.
@
text
@#!/bin/sh
# Before running this script please ensure that your PATH is
# typical as you use for compilation/istallation. I use
# /bin /sbin /usr/bin /usr/sbin /usr/local/bin, but it may
# differ on your system.
#
# $FreeBSD$

PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
echo 'If some fields are empty or look unusual you may have an old version.'
echo 'Compare to the current minimal requirements in Documentation/Changes.'
echo ' '

uname -a
echo ' '

echo "Gnu C                 " `gcc --version`

gmake --version 2>&1 | awk -F, '{print $1}' | awk \
      '/GNU Make/{print "Gnu make              ",$NF}'

ld -v

pppd --version 2>&1| grep version | awk \
'NR==1{print "PPP                   ", $3}'

ls -l `ldd /bin/sh | awk '/libc/{print $3}'` | sed \
-e 's/\.so$//' | awk -F'[.-]'   '{print "FreeBSD C Library        " \
$(NF-2)"."$(NF-1)"."$NF}'

ls -l /usr/lib/lib{g,stdc}++.so  2>/dev/null | awk -F. \
       '{print "FreeBSD C++ Library      " $4"."$5"."$6}'

    X=`kldstat | cut -d' ' -f11-13 | grep -v Name`
    echo "Modules Loaded         "$X
@
