From d9e09757137199c2beb509bfe55a6efd12b8b3c1 Mon Sep 17 00:00:00 2001
From: Jacek Antonelli
Date: Sat, 22 May 2010 14:55:21 -0700
Subject: Replace some puncuation and spaces with '-' in the test version

---
 linden/scripts/build_version.py | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'linden/scripts')

diff --git a/linden/scripts/build_version.py b/linden/scripts/build_version.py
index 9746b7c..f6b88a9 100755
--- a/linden/scripts/build_version.py
+++ b/linden/scripts/build_version.py
@@ -32,6 +32,8 @@ def get_version(filename):
     version = "%(major)s.%(minor)s.%(patch)s" % vals
 
     if len(vals['test']) > 0:
+        # Replace some puncuation and spaces with '-' in the test version
+        vals['test'] = re.sub('[ \t:;,+/\\"\'`]+', '-', vals['test'])
         version += "-%(test)s" % vals
 
     return version
-- 
cgit v1.1