chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3674a8
)
bin/mdw-build: Translate weird characters in Debian version.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 24 Apr 2015 08:39:33 +0000
(09:39 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 24 Apr 2015 08:39:33 +0000
(09:39 +0100)
The `~' is an important character in Debian version numbers, since it
sorts before end-of-string; alas it's not valid in Git tags, because `~'
is a revision operator. So translate it to `-' for the comparison.
bin/mdw-build
patch
|
blob
|
blame
|
history
diff --git
a/bin/mdw-build
b/bin/mdw-build
index a4650403a01c9f5df20e2d57282779dcc3b4dbb3..2af935ee13cd368fc7eecedf511ec5432cdea058 100755
(executable)
--- a/
bin/mdw-build
+++ b/
bin/mdw-build
@@
-227,7
+227,7
@@
case "$debian,$(yesno [ -d $srcpath/debian ])" in
debian=no debver=none
;;
yes,yes)
- debver=$(dpkg-parsechangelog | sed -n 's/^Version: //p')
+ debver=$(dpkg-parsechangelog | sed -n 's/^Version: //p'
| tr \~ -
)
;;
esac