diff --git a/gi-find-deps.sh b/gi-find-deps.sh index 372f65d..1902c1b 100644 --- a/gi-find-deps.sh +++ b/gi-find-deps.sh @@ -102,7 +102,7 @@ function javascript_requires { done # some javascript code imports gi like this (seen since GNOME 43, e.g. GNOME Maps) # import 'gi://GeocodeGlib?version=2.0' - for module in $(grep -h -P -o "[']gi://([^']+)" $1 | sed "s|'gi://||"); do + for module in $(grep -h -P -o "['\"]gi://([^'\"]+)" $1 | sed "s|['\"]gi://||"); do split_name_versionjs_gi_name_version $module print_req_prov done @@ -222,6 +222,9 @@ while read file; do *[Pp]ython*script*) python_requires "$file" ;; + *JavaScript*source*) + javascript_requires "$file" + ;; *ELF*) gresources_requires "$file" ;; diff --git a/gobject-introspection.changes b/gobject-introspection.changes index f87bd2c..b5f928a 100644 --- a/gobject-introspection.changes +++ b/gobject-introspection.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 8 13:59:57 UTC 2024 - Dominique Leuenberger + +- gi-find-deps.sh: further expand on the java script scanner. + ------------------------------------------------------------------- Thu Apr 4 08:14:39 UTC 2024 - Dominique Leuenberger