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


1.3
date	97.02.24.06.10.46;	author morgan;	state Exp;
branches;
next	1.2;

1.2
date	97.01.29.03.48.16;	author morgan;	state Exp;
branches;
next	1.1;

1.1
date	97.01.29.03.41.34;	author morgan;	state Exp;
branches;
next	;


desc
@@


1.3
log
@update for .54
@
text
@#!/bin/bash
#
# $Id: md5itall,v 1.2 1997/01/29 03:48:16 morgan Exp morgan $
#
# $Log: md5itall,v $
# Revision 1.2  1997/01/29 03:48:16  morgan
# fixed symbolic link stuff
#
# Revision 1.1  1997/01/29 03:41:34  morgan
# Initial revision
#
#
# Created by Andrew G. Morgan (morgan@@physics.ucla.edu)
#

MD5SUM=md5sum
CHKFILE1=./.md5sum
CHKFILE2=./.md5sum-new

which $MD5SUM > /dev/null
result=$?

if [ -x "$MD5SUM" ] || [ $result -eq 0 ]; then
	rm -f $CHKFILE2
	echo -n "computing md5 checksums."
	for x in `cat ../.filelist` ; do
		echo -n "."
		(cd ../.. ; $MD5SUM $x) >> $CHKFILE2
	done
	echo
	if [ -f "$CHKFILE1" ]; then
		echo "\
---> Note, since the last \`make check', the following file(s) have changed:
==========================================================================="
		diff $CHKFILE1 $CHKFILE2
		if [ $? -eq 0 ]; then
			echo "\
--------------------------- Nothing has changed ---------------------------"
		fi
		echo "\
==========================================================================="
	fi
	rm -f "$CHKFILE1"
	mv "$CHKFILE2" "$CHKFILE1"
	chmod 400 "$CHKFILE1"
else
	echo "\
Please install \`$MD5SUM'.
[It is used to check the integrity of this distribution]
---> no check done."
fi
@


1.2
log
@fixed symbolic link stuff
@
text
@d3 1
a3 1
# $Id: md5itall,v 1.1 1997/01/29 03:41:34 morgan Exp morgan $
d6 3
d27 2
a28 4
		if [ ! -L ../../$x ]; then
			(cd ../.. ; $MD5SUM $x) >> $CHKFILE2
			echo -n "."
		fi
@


1.1
log
@Initial revision
@
text
@d3 5
a7 1
# $Id$
a8 1
# $Log$
d24 1
a24 1
		if [ ! -l $x ]; then
@
