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

ln -f libqt4.changes libqt4-sql-plugins.changes
ln -f libqt4.changes libqt4-devel-doc-data.changes
ln -f libqt4.changes libqt4-devel-doc.changes

for spec in libqt4-sql-plugins.spec libqt4-devel-doc-data.spec libqt4-devel-doc.spec; do
{ sed -n -e '1,/COMMON-VERSION-BEGIN/p' $spec.in
  sed -n -e '/COMMON-VERSION-BEGIN/,/COMMON-VERSION-END/p' libqt4.spec
  sed -n -e '/COMMON-VERSION-END/,/COMMON-BEGIN/p' $spec.in
  sed -n -e '/COMMON-BEGIN/,/COMMON-END/p' libqt4.spec
  sed -n -e '/COMMON-END/,$p' $spec.in;
 } > $spec.tmp && mv $spec.tmp $spec
done
