hid:b0003g0001v00000627p00000001
 +    # ext/babelplugin.py
# Copyright 2006-2022 the Mako authors and contributors <see AUTHORS file>
#
# This module is part of Mako and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php

"""gettext message extraction via Babel: https://pypi.org/project/Babel/"""
from babel.messages.extract import extract_python

from mako.ext.extract import MessageExtractor


class BabelMakoExtractor(MessageExtractor):
    def __init__(self, keywords, comment_tags, options):
        self.keywords = keywords
        self.options = options
        self.config = {
            "comment-tags": " ".join(comment_tags),
            "encoding": options.get(
                "input_encoding", options.get("encoding", None)
            ),
        }
        super().__init__()

    def __call__(self, fileobj):
        return self.process_file(fileobj)

    def process_python(self, code, code_lineno, translator_strings):
        comment_tags = self.config["comment-tags"]
        for (
            lineno,
            funcname,
            messages,
            python_translator_comments,
        ) in extract_python(code, self.keywords, comment_tags, self.options):
            yield (
                code_lineno + (lineno - 1),
                funcname,
                messages,
                translator_strings + python_translator_comments,
            )


def extract(fileobj, keywords, comment_tags, options):
    """Extract messages from Mako templates.

    :param fileobj: the file-like object the messages should be extracted from
    :param keywords: a list of keywords (i.e. function names) that should be
                     recognized as translation functions
    :param comment_tags: a list of translator tags to search for and include
                         in the results
    :param options: a dictionary of additional options (optional)
    :return: an iterator over ``(lineno, funcname, message, comments)`` tuples
    :rtype: ``iterator``
    """
    extractor = BabelMakoExtractor(keywords, comment_tags, options)
    yield from extractor(fileobj)
 ï    ‹      ½”ÍŽÚ0…÷ó·^t—\` U3ŽÛ)A*ˆIUUUNì$V“8²=CéÓ×ÐÐ
ú³h7±ã|¹÷œ“ØôE¼œ$WSx—ÜÏaõþí|6 ~¸ž ÆIÜ=†½>âtA€”Îµ7ˆ›Í&Ü\‡Ú˜¬±tu5DëŒÊ\(œ ìŠîÖØÐRráG N¹J²Y#äWÐ9 ~tV	98NPèÚ¢•�ÈU%C!k–6Ì´n}¡3X[é!V*E»µNÖâ0â£•æM/ô×'•ù»¦^tÐT‹íN^ÿKñ÷1ðt¯h75Œºžx¥Š&"N·„QU`MT™n,¦o¾„…Ê	ðÊEäÓl²üì9tåîmF9”Fæy=‰·Ë(&lÁkI‘Ÿgî=sGØœ[µ*WR\„:øA}»\0î˜XÚÌ¨Ö)Ý<£è-žZÍte[î½Ž¼ƒÒœR"~—Ï~cu·ž.’x¶î"»ÏêþÅ‡%lÅ�lÄÊÈÌi³=Øíz¿lRÛÞoá`Æ¨¢t„p–ü‹º”O3ðùžußï•.T¤Ü%�·Ùä„�]>õð“èAo0
zã`0†þøf4¸ Ž†¯~áîÿ<ìŠû�J±;G¾µ
“ª   –    #!/bin/sh

# Variable declaration
prefix='/usr'
datarootdir='/usr/share'
exec_prefix="`eval echo ${prefix}`"
phpdir="$prefix/lib/php/20240924/build"
includedir="$prefix/include/php/20240924"
builddir="`pwd`"
SED="/bin/sed"

libtool_version=$(dpkg-query -f'${Version}' -W libtool)
aclocaldir="$prefix/share/aclocal"
if dpkg --compare-versions "$libtool_version" ge 2.4.6-0.1~; then \
  auxdir="/usr/share/libtool/build-aux"
else \
  auxdir="/usr/share/libtool/config"
fi
FILES_BUILD="php.m4 /usr/bin/shtool ax_check_compile_flag.m4 ax_gcc_func_attribute.m4 php_cxx_compile_stdcxx.m4 \
	Makefile.global gen_stub.php"
FILES="run-tests*.php"
LIBTOOL_FILES="pkg.m4 libtool.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 lt~obsolete.m4"
AUX_FILES="config.sub config.guess ltmain.sh"
CLEAN_FILES="$FILES *.o *.lo *.la .libs/ build/ modules/ \
  config.nice configure configure.ac \
  config.h config.h.in conftest* libtool config.cache autom4te.cache/ \
  config.log config.status Makefile Makefile.fragments Makefile.objects confdefs.h \
  run-tests*.php tests/*.diff tests/*.exp tests/*.log tests/*.out tests/*.php"

# function declaration
phpize_usage()
{
  echo "Usage: $0 [--clean|--help|--version|-v]"
}

phpize_no_configm4()
{
  if test $@ -eq 1; then
    clean=" --clean"
  fi

  echo "Cannot find config.m4. "
  echo "Make sure that you run '$0$clean' in the top level source directory of the module"
  echo
}

phpize_clean()
{
  echo "Cleaning.."
  for i