2019-02-19 17:05:47 -01:00
|
|
|
#!/bin/bash
|
2010-11-14 14:13:48 -01:00
|
|
|
|
|
|
|
export LANG=C
|
|
|
|
export LC_ALL=C
|
|
|
|
|
|
|
|
if [ "$1"x = ""x ] ; then
|
|
|
|
echo "$0: tell me which dir to target!"
|
|
|
|
echo "abort"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
CHECK=`ls -al $1/*/iso-* 2>/dev/null`
|
|
|
|
if [ "$CHECK"x = ""x ] ; then
|
|
|
|
echo "$0: could not find stuff to work on in $1"
|
|
|
|
echo "abort"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
for DIR in $1/*/*-*; do
|
|
|
|
cd $DIR
|
|
|
|
CHECK=`ls -al *SUMS.* 2>/dev/null`
|
|
|
|
if [ "$CHECK"x != ""x ] ; then
|
|
|
|
cat SHA256SUMS.* | sort -k2 | uniq > SHA256SUMS
|
|
|
|
cat SHA512SUMS.* | sort -k2 | uniq > SHA512SUMS
|
2019-10-23 16:05:04 +00:00
|
|
|
for ISOFILE in `cat SHA256SUMS | awk '{print $2}'`; do
|
2010-11-14 14:13:48 -01:00
|
|
|
JIGDOFILE=${ISOFILE%iso}jigdo
|
|
|
|
TEMPLATEFILE=${ISOFILE%iso}template
|
|
|
|
if [ ! -e $ISOFILE ] && [ ! -e $JIGDOFILE ] && [ ! -e $TEMPLATEFILE ] ; then
|
|
|
|
echo "$ISOFILE/$JIGDOFILE/$TEMPLATEFILE missing in $DIR!"
|
|
|
|
# echo "abort"
|
|
|
|
# exit 1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
echo "$DIR done"
|
|
|
|
else
|
|
|
|
echo "Ignoring $DIR: no checksum files"
|
|
|
|
fi
|
|
|
|
done
|