File pre_checkin.sh of Package gstreamer-0_10

#!/bin/sh

fail() {
    echo Something failed.  Too bad.
    exit 1
}

rm -f gstreamer-0_10-doc.spec.tmp

cat gstreamer-0_10.spec \
    | sed 's/^Name: *gstreamer-0_10*/Name:           gstreamer-0_10-doc/g' \
    | sed 's/^%define *build_doc 0/%define         build_doc 1/g' \
    > gstreamer-0_10-doc.spec.tmp || fail

mv gstreamer-0_10-doc.spec.tmp gstreamer-0_10-doc.spec || fail

echo Fixed up gstreamer-0_10-doc.spec.