LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File pre_checkin.sh of Package libqt4-sql-plugins (Project KDE:Qt:STABLE)

#!/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.changes

for spec in libqt4-sql-plugins.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-DESC-BEGIN/,/COMMON-DESC-END/p' $spec.in
  sed -n -e '/COMMON-PREP-BEGIN/,/COMMON-PREP-END/p' libqt4.spec
  sed -n -e '/COMMON-PREP-END/,$p' $spec.in;
 } > $spec.tmp && mv $spec.tmp $spec
done

osc service localrun format_spec_file