2010-01-15 14:57:22 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2010-01-16 03:16:15 +01:00
|
|
|
NAME=epiphany
|
|
|
|
|
|
|
|
if ! test -f ${NAME}-branding.spec.in ; then
|
2010-01-15 14:57:22 +01:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
for variant in openSUSE SLED ; do
|
2010-01-16 03:16:15 +01:00
|
|
|
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
|
2010-01-15 14:57:22 +01:00
|
|
|
sed -i "
|
2010-01-16 03:16:15 +01:00
|
|
|
/^Name: *${NAME}-branding-${variant}/i \
|
|
|
|
# Do not edit this auto generated file! Edit ${NAME}-branding.spec.in.
|
|
|
|
" ${NAME}-branding-${variant}.spec
|
2010-01-15 14:57:22 +01:00
|
|
|
done
|