File sanitize_source.sh of Package cudd

#!/bin/sh

version="$(grep -i ^Version: cudd.spec | perl -pe 's{^Version:\s*(\S+).*}{$1}i')"
wget -c "ftp://vlsi.colorado.edu/pub/cudd-$version.tar.gz"
rm -Rf "cudd-$version"
tar -xf "cudd-$version.tar.gz"
rm -Rf "cudd-$version/mnemosyne"
tar --use=xz -cvf "cudd-$version-suse.tar.xz" "cudd-$version"
rm "cudd-$version.tar.gz"