File pre_checkin.sh of Package koffice2
#!/bin/bash # This script is called automatically during autobuild checkin. version=$(grep '^Version:.*' koffice2.spec) for change in koffice2-doc; do cp -f koffice2.changes $change.changes sed -i -e "s,Version:.*,$version," ${change}.spec done