Lines 1-8
Link Here
|
1 |
- .git/ is missing in archive, so use version from environment |
1 |
- .git/ is missing in archive, so use version from environment |
2 |
|
2 |
|
3 |
--- build/gen.py.orig 2019-05-30 09:42:43 UTC |
3 |
--- build/gen.py.orig 2020-02-22 10:07:32 UTC |
4 |
+++ build/gen.py |
4 |
+++ build/gen.py |
5 |
@@ -117,24 +117,15 @@ def main(argv): |
5 |
@@ -124,25 +124,16 @@ def main(argv): |
6 |
|
6 |
|
7 |
|
7 |
|
8 |
def GenerateLastCommitPosition(host, header): |
8 |
def GenerateLastCommitPosition(host, header): |
Lines 20-31
Link Here
|
20 |
#ifndef OUT_LAST_COMMIT_POSITION_H_ |
20 |
#ifndef OUT_LAST_COMMIT_POSITION_H_ |
21 |
#define OUT_LAST_COMMIT_POSITION_H_ |
21 |
#define OUT_LAST_COMMIT_POSITION_H_ |
22 |
|
22 |
|
|
|
23 |
#define LAST_COMMIT_POSITION_NUM %s |
23 |
-#define LAST_COMMIT_POSITION "%s (%s)" |
24 |
-#define LAST_COMMIT_POSITION "%s (%s)" |
24 |
+#define LAST_COMMIT_POSITION "%s" |
25 |
+#define LAST_COMMIT_POSITION "%s" |
25 |
|
26 |
|
26 |
#endif // OUT_LAST_COMMIT_POSITION_H_ |
27 |
#endif // OUT_LAST_COMMIT_POSITION_H_ |
27 |
-''' % (mo.group(1), mo.group(2)) |
28 |
-''' % (mo.group(1), mo.group(1), mo.group(2)) |
28 |
+''' % (os.environ['GN_VERSION']) |
29 |
+''' % (os.environ['GN_VERSION'], os.environ['GN_VERSION']) |
29 |
|
30 |
|
30 |
# Only write/touch this file if the commit position has changed. |
31 |
# Only write/touch this file if the commit position has changed. |
31 |
old_contents = '' |
32 |
old_contents = '' |