dbus-1/pre_checkin.sh
Stephan Kulow 7a33fefe72 - add patch to enable X11 autolaunch even if configure thinks
it can't be done (bnc#707817)

- add patch to enable X11 autolaunch even if configure thinks
  it can't be done (bnc#707817)

OBS-URL: https://build.opensuse.org/package/show/Base:System/dbus-1?expand=0&rev=69
2011-10-12 09:51:10 +00:00

23 lines
731 B
Bash

#!/bin/bash
# vim:sw=4 et
# This script is called automatically during autobuild checkin.
cp -lf dbus-1.changes dbus-1-x11.changes
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
osc service localrun format_spec_file