4b719bb20f
checked in (request 50662) OBS-URL: https://build.opensuse.org/request/show/50662 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/epiphany-branding-openSUSE?expand=0&rev=21
19 lines
587 B
Bash
19 lines
587 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.in ${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
|