19 lines
366 B
Bash
19 lines
366 B
Bash
#!/bin/sh
|
|
|
|
function fail {
|
|
echo Something failed. Too bad.
|
|
exit 1
|
|
}
|
|
|
|
rm -f avahi-mono.spec.tmp
|
|
|
|
cat avahi.spec \
|
|
| sed 's/^Name: *avahi/Name: avahi-mono/g' \
|
|
| sed 's/^%define *build_mono 0/%define build_mono 1/g' \
|
|
> avahi-mono.spec.tmp || fail
|
|
|
|
mv avahi-mono.spec.tmp avahi-mono.spec || fail
|
|
|
|
echo Fixed up avahi-mono.spec.
|
|
|