epiphany-branding-openSUSE/pre_checkin.sh
Vincent Untz 9a79e22a90 Accepting request 29661 from home:vuntz:branches:GNOME:Factory
Copy from home:vuntz:branches:GNOME:Factory/epiphany-branding-openSUSE via accept of submit request 29661 revision 9.
Request was accepted with message:
ok

OBS-URL: https://build.opensuse.org/request/show/29661
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/epiphany-branding-openSUSE?expand=0&rev=15
2010-01-15 13:57:22 +00:00

17 lines
579 B
Bash

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