Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | From 80e6aff72affa6d92f5abd7ff6353dfc4a7bff38 Mon Sep 17 00:00:00 2001 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Wed, 31 Aug 2016 16:44:46 +0300 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 4 | Subject: [PATCH] Do not hardocode paths to perl/python in scripts. |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 5 | |
| 6 | Doing so when the interpreters are somewhere deep in a sysroot directory |
| 7 | can reach the shebang line limit, and resulting scripts wouldn't work |
| 8 | on targets either. |
| 9 | |
| 10 | Upstream-Status: Inappropriate [oe-core specific] |
| 11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 12 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 13 | --- |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 14 | gtkdoc-check.in | 2 +- |
| 15 | gtkdoc-depscan.in | 2 +- |
| 16 | gtkdoc-fixxref.in | 2 +- |
| 17 | gtkdoc-mkdb.in | 2 +- |
| 18 | gtkdoc-mkhtml.in | 2 +- |
| 19 | gtkdoc-mkman.in | 2 +- |
| 20 | gtkdoc-mkpdf.in | 2 +- |
| 21 | gtkdoc-rebase.in | 2 +- |
| 22 | gtkdoc-scan.in | 2 +- |
| 23 | gtkdoc-scangobj.in | 2 +- |
| 24 | tests/tools.sh.in | 2 +- |
| 25 | 11 files changed, 11 insertions(+), 11 deletions(-) |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 26 | |
| 27 | diff --git a/gtkdoc-check.in b/gtkdoc-check.in |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 28 | index 8c8e917..f6a25f6 100755 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 29 | --- a/gtkdoc-check.in |
| 30 | +++ b/gtkdoc-check.in |
| 31 | @@ -1,4 +1,4 @@ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 32 | -#!@PYTHON@ |
| 33 | +#!/usr/bin/env python3 |
| 34 | # -*- python; coding: utf-8 -*- |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 35 | # |
| 36 | # gtk-doc - GTK DocBook documentation generator. |
| 37 | diff --git a/gtkdoc-depscan.in b/gtkdoc-depscan.in |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 38 | index 9bfaf30..aadc952 100755 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 39 | --- a/gtkdoc-depscan.in |
| 40 | +++ b/gtkdoc-depscan.in |
| 41 | @@ -1,4 +1,4 @@ |
| 42 | -#!@PYTHON@ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 43 | +#!/usr/bin/env python3 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 44 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 45 | from __future__ import print_function |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 46 | |
| 47 | diff --git a/gtkdoc-fixxref.in b/gtkdoc-fixxref.in |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 48 | index 44f6bd1..26fbd93 100755 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 49 | --- a/gtkdoc-fixxref.in |
| 50 | +++ b/gtkdoc-fixxref.in |
| 51 | @@ -1,4 +1,4 @@ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 52 | -#!@PYTHON@ |
| 53 | +#!/usr/bin/env python3 |
| 54 | # -*- python -*- |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 55 | # |
| 56 | # gtk-doc - GTK DocBook documentation generator. |
| 57 | diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 58 | index 42d5731..3a56d56 100755 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 59 | --- a/gtkdoc-mkdb.in |
| 60 | +++ b/gtkdoc-mkdb.in |
| 61 | @@ -1,4 +1,4 @@ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 62 | -#!@PYTHON@ |
| 63 | +#!/usr/bin/env python3 |
| 64 | # -*- python; coding: utf-8 -*- |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 65 | # |
| 66 | # gtk-doc - GTK DocBook documentation generator. |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 67 | diff --git a/gtkdoc-mkhtml.in b/gtkdoc-mkhtml.in |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 68 | index 0d0a15d..914ff55 100755 |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 69 | --- a/gtkdoc-mkhtml.in |
| 70 | +++ b/gtkdoc-mkhtml.in |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 71 | @@ -1,4 +1,4 @@ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 72 | -#!@PYTHON@ |
| 73 | +#!/usr/bin/env python3 |
| 74 | # -*- python; coding: utf-8 -*- |
| 75 | # |
| 76 | # gtk-doc - GTK DocBook documentation generator. |
| 77 | diff --git a/gtkdoc-mkman.in b/gtkdoc-mkman.in |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 78 | index c5445cd..65db71a 100755 |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 79 | --- a/gtkdoc-mkman.in |
| 80 | +++ b/gtkdoc-mkman.in |
| 81 | @@ -1,4 +1,4 @@ |
| 82 | -#!@PYTHON@ |
| 83 | +#!/usr/bin/env python3 |
| 84 | # -*- python; coding: utf-8 -*- |
| 85 | # |
| 86 | # gtk-doc - GTK DocBook documentation generator. |
| 87 | diff --git a/gtkdoc-mkpdf.in b/gtkdoc-mkpdf.in |
| 88 | index e8c0c03..f807236 100755 |
| 89 | --- a/gtkdoc-mkpdf.in |
| 90 | +++ b/gtkdoc-mkpdf.in |
| 91 | @@ -1,4 +1,4 @@ |
| 92 | -#!@PYTHON@ |
| 93 | +#!/usr/bin/env python3 |
| 94 | # -*- python; coding: utf-8 -*- |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 95 | # |
| 96 | # gtk-doc - GTK DocBook documentation generator. |
| 97 | diff --git a/gtkdoc-rebase.in b/gtkdoc-rebase.in |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 98 | index 17a71c2..ec3fd28 100755 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 99 | --- a/gtkdoc-rebase.in |
| 100 | +++ b/gtkdoc-rebase.in |
| 101 | @@ -1,4 +1,4 @@ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 102 | -#!@PYTHON@ |
| 103 | +#!/usr/bin/env python3 |
| 104 | # -*- python -*- |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 105 | # |
| 106 | # gtk-doc - GTK DocBook documentation generator. |
| 107 | diff --git a/gtkdoc-scan.in b/gtkdoc-scan.in |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 108 | index 954c811..f461504 100755 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 109 | --- a/gtkdoc-scan.in |
| 110 | +++ b/gtkdoc-scan.in |
| 111 | @@ -1,4 +1,4 @@ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 112 | -#!@PYTHON@ |
| 113 | +#!/usr/bin/env python3 |
| 114 | # -*- python -*- |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 115 | # |
| 116 | # gtk-doc - GTK DocBook documentation generator. |
| 117 | diff --git a/gtkdoc-scangobj.in b/gtkdoc-scangobj.in |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 118 | index 4cbe130..52c2c24 100755 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 119 | --- a/gtkdoc-scangobj.in |
| 120 | +++ b/gtkdoc-scangobj.in |
| 121 | @@ -1,4 +1,4 @@ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 122 | -#!@PYTHON@ |
| 123 | +#!/usr/bin/env python3 |
| 124 | # -*- python -*- |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 125 | # |
| 126 | # gtk-doc - GTK DocBook documentation generator. |
| 127 | diff --git a/tests/tools.sh.in b/tests/tools.sh.in |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 128 | index 343844a..9dc6692 100644 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 129 | --- a/tests/tools.sh.in |
| 130 | +++ b/tests/tools.sh.in |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 131 | @@ -30,7 +30,7 @@ done |
| 132 | # TODO: also test the module files |
| 133 | for file in gtkdoc-check gtkdoc-depscan gtkdoc-fixxref gtkdoc-mkdb gtkdoc-mkhtml gtkdoc-mkhtml2 gtkdoc-mkman gtkdoc-mkpdf gtkdoc-rebase gtkdoc-scangobj; do |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 134 | fullfile=`which $file` |
| 135 | - @PYTHON@ -m py_compile $fullfile |
| 136 | + python3 -m py_compile $fullfile |
| 137 | if test $? != 0 ; then failed=`expr $failed + 1`; fi |
| 138 | tested=`expr $tested + 1` |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 139 | done |