#!/bin/bash

for config in rpi rpi2 rpi3; do
    ln -f raspberrypi-firmware.changes raspberrypi-firmware-config-$config.changes
    sed -e "s,__NAME__,raspberrypi-firmware-config-$config," raspberrypi-firmware-config.spec.in |
        sed -e "s,__FLAVOR__,$config," > raspberrypi-firmware-config-$config.spec
done

osc service localrun format_spec_file
