#!/bin/sh
# 
#  Copyright (c) 1989 Brian Sturgill
#  All rights reserved.
# 
#  Redistribution and use in source and binary forms are permitted
#  provided that the above copyright notice and this paragraph are
#  duplicated in all such forms and that any documentation,
#  advertising materials, and other materials related to such
#  distribution and use acknowledge that the software was developed
#  by Brian Sturgill and Raphael Finkel at the University of Kentucky,
#  Department of Computer Science.  The names of the University or the
#  authors may not be used to endorse or promote products derived
#  from this software without specific prior written permission.
#  THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
#  IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
#  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#

list=""

for f in *; do
if [ $f != check -a $f != prog -a $f != report ]; then
	list="$list $f"
fi
done
# it is very important that .LastModified be last as an unarchive failure
# will result in no .LastModified being present.
# No .LastModified is considered older than any other .LastModified
# effectively preventing this corrupted relation from being shipped
# elsewhere.
# It will also cause sal reports on access hosts have relationnewer()
# return false.

case "`hostinfo OSType`" in
hpux)
    tar cf - $list .LastModified
    ;;
*)
    tar Bcf - $list .LastModified
    ;;
esac
