From e1e109ad87dab86d155524f02417fc20e2874d59 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Wed, 26 Nov 2014 21:37:07 +0100 Subject: build: Map % back to : Although we do not have any epochs (and should never need one!), it serves as an example script for others to use. --- get-version | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'get-version') diff --git a/get-version b/get-version index 6c39065bd..6ae9c0b1d 100755 --- a/get-version +++ b/get-version @@ -22,9 +22,9 @@ if [ -f .dist-version ]; then # Get the version from the file distributed in the tarball. version=$(cat .dist-version) 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 | tr _ ~) + # Get the version from the git repository. Since tags cannot contain colons + # or tildes, we use percent and underscore instead. Reverse that switch here. + 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 -- cgit v1.2.3