4 scr
=skype-call-recorder
8 -*) echo "Unknown option $1" && exit 1 ;;
15 echo "Usage: $0 <version>"
19 if git tag
-l |
grep -q "^$v\$" > /dev
/null
2> /dev
/null
; then
22 echo "I don't know version $v, here's what I know:"
23 git tag
-l |
sed -e 's/^/ /'
29 tmp
="$BASE/tmp-rpm-build"
32 mkdir
"$tmp"/SOURCES
"$tmp"/BUILD
"$tmp"/RPMS ||
exit 1
34 $BASE/utils
/snapshot
$v "$tmp/SOURCES/$scr-$v.tar.gz" ||
exit 1
36 git show
-p $v:$scr.spec |
sed \
37 -e "s+@version@+$v+g" \
38 -e "s+@buildroot@+$tmp/destdir+g" \
39 > "$tmp/spec" ||
exit 1
41 rpmbuild
-bb --define "_topdir $tmp" --define "buildroot $tmp/destdir" "$tmp/spec" ||
exit 1
43 mv "$tmp"/RPMS
/*/* . ||
exit 1