From d051cc37107dabfab411f4a43dae6766455239d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jani=20V=C3=A4limaa?= Date: Mon, 26 May 2014 19:56:59 +0300 Subject: gi-find-deps.sh: improve sed magic to handle special sugar typelib requires --- gi-find-deps.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gi-find-deps.sh.in') diff --git a/gi-find-deps.sh.in b/gi-find-deps.sh.in index a66868d..60d8355 100755 --- a/gi-find-deps.sh.in +++ b/gi-find-deps.sh.in @@ -52,7 +52,7 @@ function javascript_requires { } function python_requires { - for module in $(grep -h -P "from gi\.repository import (\w+)" $1 | sed 's:#.*::' | sed -e 's,from gi.repository import,,' -r -e 's:\s+as\s+\w+::g' -e 's:\s*,\s*: :g'); do + for module in $(grep -h -P "from gi\.repository import (\w+)" $1 | sed 's:#.*::' | sed -e 's,.*from gi.repository import,,' -r -e 's:\s+as\s+\w+::g' -e 's:\s*,\s*: :g' -e 's:\s[0-9]+\s: :g' -e 's:[^A-Za-z0-9\.\-]: :g'); do split_name_version $module print_req_prov # Temporarly disabled... this is not true if the python code is written for python3... And there seems no real 'way' to identify this. -- cgit v1.2.1