mirror of
https://github.com/linux-pam/linux-pam.git
synced 2024-12-04 15:13:57 +08:00
52 lines
1.1 KiB
Bash
Executable File
52 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# $Id$
|
|
#
|
|
# $Log$
|
|
# Revision 1.1 2000/06/20 22:10:45 agmorgan
|
|
# Initial revision
|
|
#
|
|
# Revision 1.1.1.1 1998/07/12 05:17:14 morgan
|
|
# Linux PAM sources pre-0.66
|
|
#
|
|
#
|
|
# Created by Andrew G. Morgan (morgan@parc.power.net)
|
|
#
|
|
|
|
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
|
|
(cd ../.. ; $MD5SUM $x) >> $CHKFILE2
|
|
echo -n "."
|
|
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
|