summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvapier <vapier>2006-10-03 05:28:08 +0000
committervapier <vapier>2006-10-03 05:28:08 +0000
commitcb47c8334842d2296dfd20dfa36397da184c1058 (patch)
tree3d42ce6e9041cbdbebe99ba900c7b2934546a68e
parentadd support for generating locales in parallel #137706 by Brian Harring (diff)
downloadlocale-gen-cb47c8334842d2296dfd20dfa36397da184c1058.tar.gz
locale-gen-cb47c8334842d2296dfd20dfa36397da184c1058.tar.bz2
locale-gen-cb47c8334842d2296dfd20dfa36397da184c1058.zip
fix version parsing
-rwxr-xr-xlocale-gen7
1 files changed, 4 insertions, 3 deletions
diff --git a/locale-gen b/locale-gen
index 1179e08..cf46063 100755
--- a/locale-gen
+++ b/locale-gen
@@ -42,9 +42,10 @@ show_usage() {
exit 1
}
show_version() {
- local cvsver="$Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/locale/locale-gen,v 1.16 2006/09/23 14:28:41 vapier Exp $"
- cvsver=${cvsver##*locale-gen-}
- echo "locale-gen-${cvsver%%,v *}"
+ local Header=""
+ local cvsver="$Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/locale/locale-gen,v 1.17 2006/10/03 05:28:08 vapier Exp $"
+ cvsver=${cvsver##*locale-gen,v }
+ echo "locale-gen-${cvsver%% *}"
exit 0
}