openocd: avoid documentation rebuild to fix build issues
[buildroot-gz.git] / package / openpgm / 0001-version_generator.py-make-it-python3-compliant.patch
blob97cff29df0fc442af6a3f88a6cdc25773786c3cf
1 From e04f5c20fc1536f8e6d4faf32f2f4657d441f7c8 Mon Sep 17 00:00:00 2001
2 From: Samuel Martin <s.martin49@gmail.com>
3 Date: Mon, 14 Apr 2014 17:54:37 +0200
4 Subject: [PATCH] version_generator.py: make it python3 compliant
6 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
7 ---
8 openpgm/pgm/version_generator.py | 6 ++++--
9 1 file changed, 4 insertions(+), 2 deletions(-)
11 diff --git a/openpgm/pgm/version_generator.py b/openpgm/pgm/version_generator.py
12 index 2265480..c31376f 100755
13 --- a/openpgm/pgm/version_generator.py
14 +++ b/openpgm/pgm/version_generator.py
15 @@ -1,5 +1,7 @@
16 #!/usr/bin/python
18 +from __future__ import print_function
20 import os
21 import platform
22 import time
23 @@ -8,7 +10,7 @@ build_date = time.strftime ("%Y-%m-%d")
24 build_time = time.strftime ("%H:%M:%S")
25 build_rev = filter (str.isdigit, "$Revision: 1369 $")
27 -print """
28 +print("""
29 /* vim:ts=8:sts=8:sw=4:noai:noexpandtab
31 * OpenPGM version.
32 @@ -47,6 +49,6 @@ const char* pgm_build_revision = "%s";
35 /* eof */
36 -"""%(build_date, build_time, platform.system(), platform.machine(), build_rev)
37 +"""%(build_date, build_time, platform.system(), platform.machine(), build_rev))
39 # end of file
40 --
41 1.9.2