#/bin/sh

sed -i '
/Included in Slint/d
/PRGNAM=/s,.*,# Included in Slint by Didier Spaier didieratslintdotfr\n\n&,
s/-_SBo/-slint/
s,/tmp/SBo,$CWD,
s,/tmp,$CWD,
s/:-tgz/:-txz/' *.SlackBuild
. ./*.info
FILENAME=$(basename $DOWNLOAD)
if [ ! -f $FILENAME ]; then
	wget $DOWNLOAD
fi
MD5SUM2=$(md5sum $FILENAME|sed "s/[[:space:]].*//")
echo "MD5SUM=$MD5SUM"
echo "MD5SUM2=$MD5SUM2"

if [ "$MD5SUM" = "$MD5SUM2" ]; then
	echo "OK"
fi
