diff options
author | Guillem Jover <guillem@debian.org> | 2014-11-26 21:37:07 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2015-02-11 04:42:42 +0100 |
commit | 57554c38e9a2208a4c0e004b67ceda98b7439fda (patch) | |
tree | 2baa77b505c9d600d16cb25213df805a6c931a40 | |
parent | eb06339d12cc9797db9a6c069ab3d287db2102aa (diff) | |
download | dpkg-57554c38e9a2208a4c0e004b67ceda98b7439fda.tar.gz |
build: Use tr instead of sed to map _ to ~
-rwxr-xr-x | get-version | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/get-version b/get-version index fd7b18461..6c39065bd 100755 --- a/get-version +++ b/get-version @@ -24,7 +24,7 @@ if [ -f .dist-version ]; then elif [ -d .git ]; then # Get the version from the git repository. Since tags can't contain # tildes, we use underscore instead. Reverse that switch here. - version=$(git describe --abbrev=4 HEAD 2>/dev/null | sed -e 's/_/~/g') + version=$(git describe --abbrev=4 HEAD 2>/dev/null | tr _ ~) # Check if we are on a dirty checkout. git update-index --refresh -q >/dev/null |