File pre_checkin.sh of Package libsasl2-2.3057

#!/bin/bash

echo -n "Generating cyrus-sasl-openssl1 "

cp cyrus-sasl.changes cyrus-sasl-openssl1.changes
cp cyrus-sasl.spec cyrus-sasl-openssl1.spec

perl -pi -e "s/^Name:.*cyrus-sasl$/Name:           cyrus-sasl-openssl1/g"  cyrus-sasl-openssl1.spec

echo -n "Generating cyrus-sasl-saslauthd "
cp cyrus-sasl.changes cyrus-sasl-saslauthd.changes
SASLVERSION=$(awk '/^Version/ {print $2; exit;} {next;};' < cyrus-sasl.spec)
perl -pi -e "s/^Version:.*/Version: $SASLVERSION/" cyrus-sasl-saslauthd.spec


echo "Done."