2007-02-15 18:16:44 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# vim:sw=4 et
|
|
|
|
# This script is called automatically during autobuild checkin.
|
|
|
|
|
2007-07-21 17:28:46 +02:00
|
|
|
cp -lf dbus-1.changes dbus-1-x11.changes
|
2007-02-15 18:16:44 +01:00
|
|
|
|
|
|
|
for spec in dbus-1-x11.spec; do
|
|
|
|
cp -f $spec.in $spec
|
|
|
|
for n in $(seq 1 10); do
|
|
|
|
grep -q "COMMON$n-BEGIN" dbus-1.spec || continue
|
|
|
|
{ sed -n -e "1,/COMMON$n-BEGIN/p" $spec
|
|
|
|
sed -n -e "/COMMON$n-BEGIN/,/COMMON$n-END/p" dbus-1.spec
|
|
|
|
sed -n -e "/COMMON$n-END/,\$p" $spec.in; } > $spec.tmp && mv $spec.tmp $spec
|
|
|
|
done
|
|
|
|
|
|
|
|
# assuming hilbert has no such dir
|
|
|
|
#if test -x /mounts/work/src/bin/tools/prepare_spec; then
|
|
|
|
# /mounts/work/src/bin/tools/prepare_spec $spec > $spec.tmp && mv $spec.tmp $spec
|
|
|
|
#fi
|
|
|
|
done
|
|
|
|
|
2011-10-12 11:51:10 +02:00
|
|
|
osc service localrun format_spec_file
|