File release.sh of Package cyrus-imapd-3
#!/bin/bash make tarball # Autobump the version CURRENT_VERSION=$(grep '^Version: ' ./*.spec | sed 's/Version: //') NEW_VERSION=$(echo "$CURRENT_VERSION" | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.) echo "Bumping from $CURRENT_VERSION to $NEW_VERSION" sed -i "s/^Version:.*/Version: $NEW_VERSION/" ./*.spec osc ci -m "New release $NEW_VERSION" osc sr Kolab:16 --yes -m "New release $NEW_VERSION"