projects
/
tools
/
gbs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ebb85b
)
bug fix: typo, get nothing when probe the last patch number
author
Hasan Wan
<hasan.wan@intel.com>
Thu, 22 Dec 2011 09:27:51 +0000
(17:27 +0800)
committer
Hasan Wan
<hasan.wan@intel.com>
Thu, 22 Dec 2011 09:27:51 +0000
(17:27 +0800)
data/packaging.sh
patch
|
blob
|
history
diff --git
a/data/packaging.sh
b/data/packaging.sh
index
e23cd3b
..
f999ebf
100644
(file)
--- a/
data/packaging.sh
+++ b/
data/packaging.sh
@@
-146,7
+146,7
@@
update_patches()
num=0
else
# The first patch number
- num=$(grep "^Patch[0-9]\+" $spec |sed
-n
's/Patch\([0-9]*\):.*/\1/' |sort -n |tail -1)
+ num=$(grep "^Patch[0-9]\+" $spec |sed 's/Patch\([0-9]*\):.*/\1/' |sort -n |tail -1)
num=$(expr $num + 1)
fi