projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
419464e
)
smarter make_patchnum.sh, get the .patchnum from the .patch file if it exists
Yves Orton [Sun, 21 Dec 2008 17:49:27 +0000 (18:49 +0100)]
make_patchnum.sh
patch
|
blob
|
blame
|
history
diff --git
a/make_patchnum.sh
b/make_patchnum.sh
index
2306fa8
..
d3c9441
100644
(file)
--- a/
make_patchnum.sh
+++ b/
make_patchnum.sh
@@
-1,7
+1,11
@@
#!/bin/sh
Existing=`cat .patchnum 2>/dev/null`
-Current=`git describe`
+if [ -e ".patch" ]; then
+ Current=`awk '{print $4}' .patch`
+else
+ Current=`git describe`
+fi
if [ "$Existing" != "$Current" ]; then
echo "Updating .patchnum"