From 6586341d1d0cef2f15013a2312f26629675de165 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 29 Dec 2006 20:35:43 +0000 Subject: [PATCH] Print the first unused patch number across all the current package's branches. --- gdbpatchno | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 gdbpatchno diff --git a/gdbpatchno b/gdbpatchno new file mode 100755 index 0000000..66afe02 --- /dev/null +++ b/gdbpatchno @@ -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)]