6586341
#! /bin/sh
6586341
# $Id$
6586341
# Print the first unused patch number across all the current package's branches.
6586341
6586341
echo $[1+$(cat ../*/*.spec|sed -n 's/^[# %]*patch\([0-9]*\).*$/\1/p'|sort -rnu|head -n1)]