Print the first unused patch number across all the current package's

branches.
This commit is contained in:
Jan Kratochvil 2006-12-29 20:35:43 +00:00
parent 418be7985a
commit 6586341d1d
1 changed files with 5 additions and 0 deletions

5
gdbpatchno Executable file
View File

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