File gconf2-branding_spec-prepare.sh of Package gconf2-branding-openSUSE

#!/bin/bash

# Autobuild doesn't support package names with macros. This script will update versions in package names.

if ! test -f gconf2-branding.spec.in ; then
    exit
fi

for variant in openSUSE SLED SLES ; do
    cp gconf2-branding.spec.in gconf2-branding-${variant}.spec
    cp gconf2-branding.changes gconf2-branding-${variant}.changes
    sed -i "s/%{branding_name}/${variant}/g" gconf2-branding-${variant}.spec
    sed -i "s/\(%define *build_${variant} *\)0/\11/" gconf2-branding-${variant}.spec
    sed -i "
    /^Name: *gconf2-branding-${variant}/i \
# Do not edit this auto generated file! Edit gconf2-branding.spec.in.
" gconf2-branding-${variant}.spec
done