#!/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