File pre_checkin.sh of Package soprano

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

ln -f soprano.changes soprano-backend-sesame.changes
ln -f soprano.changes soprano-backend-virtuoso.changes

# soprano-backend-virtuoso.spec
for spec in soprano-backend-sesame.spec soprano-backend-virtuoso.spec; do
    cp -f $spec.in $spec
    for n in $(seq 1 10); do
        grep -q "COMMON$n-BEGIN" soprano.spec || continue
        { sed -n -e "1,/COMMON$n-BEGIN/p" $spec
          sed -n -e "/COMMON$n-BEGIN/,/COMMON$n-END/p" soprano.spec
          sed -n -e "/COMMON$n-END/,\$p" $spec.in; } > $spec.tmp && mv $spec.tmp $spec
    done
done