diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-06-14 00:39:15 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-06-14 00:39:15 +0300 |
commit | 575ef27f3757b9e2a7837c81af9a2cc797385097 (patch) | |
tree | 1faab0295e92d89e6017be99350367f13b2fa2b4 /tools | |
parent | 029ed965e2c77855bed4fa86398cd8efed7a7269 (diff) | |
download | meson-575ef27f3757b9e2a7837c81af9a2cc797385097.zip meson-575ef27f3757b9e2a7837c81af9a2cc797385097.tar.gz meson-575ef27f3757b9e2a7837c81af9a2cc797385097.tar.bz2 |
Convert project name.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/autotools2meson.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/autotools2meson.py b/tools/autotools2meson.py index a26d6aa..1ec1348 100755 --- a/tools/autotools2meson.py +++ b/tools/autotools2meson.py @@ -86,6 +86,12 @@ class Converter(): languages.append("'c'") elif line == 'AC_PROG_CXX': languages.append("'cpp'") + elif line.startswith('AC_INIT'): + line = line[8:] + if line[0] == '[': + name = line.split(']')[0][1:] + else: + name = line.split()[0] elif line.startswith('#'): outlines.append(line + '\n') elif line.startswith('PKG_CHECK_MODULES'): |