summaryrefslogtreecommitdiff
blob: 360ddc6a515c1b768306aa7be275dca9b5d05875 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
diff -rupN ardour-4.0-vanilla/wscript ardour-4.0/wscript
--- ardour-4.0-vanilla/wscript  2015-04-18 00:23:10.000000000 +0200
+++ ardour-4.0/wscript  2015-04-20 18:26:50.849812000 +0200
@@ -137,29 +137,29 @@ def fetch_tarball_revision ():
     if not os.path.exists ('libs/ardour/revision.cc'):
         print ('This tarball was not created correctly - it is missing libs/ardour/revision.cc')
         sys.exit (1)
-    with open('libs/ardour/revision.cc') as f:
-        content = f.readlines()
-        remove_punctuation_map = dict((ord(char), None) for char in '";')
-        return content[1].decode('utf-8').strip().split(' ')[7].translate (remove_punctuation_map)
-
-if os.path.isdir (os.path.join(os.getcwd(), '.git')):
-    rev = fetch_git_revision ()
-else:
-    rev = fetch_tarball_revision ()
+#    with open('libs/ardour/revision.cc') as f:
+#        content = f.readlines()
+#        remove_punctuation_map = dict((ord(char), None) for char in '";')
+#        return content[1].decode('utf-8').strip().split(' ')[7].translate (remove_punctuation_map)
+
+#if os.path.isdir (os.path.join(os.getcwd(), '.git')):
+#    rev = fetch_git_revision ()
+#else:
+#    rev = fetch_tarball_revision ()
 
 #
 # rev is now of the form MAJOR.MINOR[-rcX]-rev-commit
 # or, if right at the same rev as a release, MAJOR.MINOR[-rcX]
 #
 
-parts = rev.split ('.', 1)
-MAJOR = parts[0]
-other = parts[1].split('-', 1)
-MINOR = other[0]
-if len(other) > 1:
-    MICRO = other[1].rsplit('-',1)[0].replace('-','.')
-else:
-    MICRO = '0'
+#parts = rev.split ('.', 1)
+MAJOR = '4'
+#other = parts[1].split('-', 1)
+MINOR = '0'
+#if len(other) > 1:
+#    MICRO = other[1].rsplit('-',1)[0].replace('-','.')
+#else:
+MICRO = 'gentoo'
 
 V = MAJOR + '.' + MINOR + '.' + MICRO
 VERSION = V
@@ -216,16 +216,16 @@ def fetch_gcc_version (CC):
     return version
 
 def create_stored_revision():
-    rev = ""
-    if os.path.exists('.git'):
-        rev = fetch_git_revision();
-        print("Git version: " + rev + "\n")
-    elif os.path.exists('libs/ardour/revision.cc'):
-        print("Using packaged revision")
-        return
-    else:
-        print("Missing libs/ardour/revision.cc.  Blame the packager.")
-        sys.exit(-1)
+    rev = "4.0-gentoo"
+#    if os.path.exists('.git'):
+#        rev = fetch_git_revision();
+#        print("Git version: " + rev + "\n")
+#    elif os.path.exists('libs/ardour/revision.cc'):
+#        print("Using packaged revision")
+#        return
+#    else:
+#        print("Missing libs/ardour/revision.cc.  Blame the packager.")
+#        sys.exit(-1)
 
     try:
         #