epiphany-branding-openSUSE/pre_checkin.sh
OBS User autobuild 18f09e3bf9 Accepting request 29818 from GNOME:Factory
Copy from GNOME:Factory/epiphany-branding-openSUSE based on submit request 29818 from user vuntz

OBS-URL: https://build.opensuse.org/request/show/29818
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/epiphany-branding-openSUSE?expand=0&rev=9
2010-01-18 16:41:17 +00:00

19 lines
584 B
Bash

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