File pre_checkin.sh of Package cyrus-sasl

#!/bin/bash

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."