File pre_checkin.sh of Package kdegames4-carddecks

#!/bin/bash
# This script is called automatically during autobuild checkin.

version=$(grep '^Version:.*' kdegames4.spec)
for change in kdegames4-carddecks.changes; do

  cp -f kdegames4.changes $change
  sed -i -e "s,Version:.*,$version," $(basename $change .changes).spec
done