Skip to content

Conversation

@yadij
Copy link
Contributor

@yadij yadij commented Jan 11, 2026

.. whenever a new squid package is distributed.

This fixes issues with outdated config files
missing languages to translate and deprecated
package name/version details.

The file can be regenerated manually with:
make -C doc/manuals manuals.conf

Used by running po4a in the top-level directory
from a git checkout, or release tarball:

po4a [--verbose] doc/manuals/manuals.conf

.. whenever a new squid package is distributed.

This fixes issues with outdated config files
missing languages to translate and deprecated
package name/version details.

The file can be regenerated manually with:
  make -C doc/manuals manuals.conf

Used by running po4a in the top-level directory
from a git checkout, or release tarball:

  po4a [--verbose] doc/manuals/manuals.conf
@yadij yadij added M-cleared-for-merge https://github.com/measurement-factory/anubis#pull-request-labels S-could-use-an-approval An approval may speed this PR merger (but is not required) labels Jan 11, 2026
manuals.conf: Makefile
( \
echo "[po4a_langs] $(LANGUAGE_FILES)" | sed -e 's%[.]lang%%g'; \
echo -n "[options] --no-translations -o groff_code=verbatim "; \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to 2024 commit 9732312 and echo manual page on MacOS, we should avoid echo -n. I recommend merging the two echo lines instead of using -n to split them. The merged echo command will be longer, of course, but not prohibitively long.

echo -n "[options] --no-translations -o groff_code=verbatim "; \
echo " --package-name=$(PACKAGE) --package-version=$(VERSION) "; \
echo "[po4a_paths] doc/manuals/manuals.pot \$$lang:doc/manuals/\$$lang.po"; \
for fname in `cd $(top_srcdir) ; git ls-files *.8 *.8.in`; do \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does make dist already depend on being run from a git repository? If not, please do not introduce that dependency.

( \
echo "[po4a_langs] $(LANGUAGE_FILES)" | sed -e 's%[.]lang%%g'; \
echo -n "[options] --no-translations -o groff_code=verbatim "; \
echo " --package-name=$(PACKAGE) --package-version=$(VERSION) "; \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to avoid hard-coding Squid version in one more versioned controlled file (i.e. manuals.conf)? Perhaps we can keep these two options in scripts/update-pot.sh?

PR description: This fixes issues with outdated config files missing languages to translate and deprecated package name/version details.

If I change the above details (e.g., modify AC_INIT in configure.ac), bootstrap, configure, and build Squid, but do not run make dist or equivalent, then versioned manuals.conf would remain stale, right? What would prevent me from running scripts/update-pot.sh that would then use stale manuals.conf?


## po4a conversion of all doc/manuals man files...
po4a --no-translations -o groff_code=verbatim --verbose po4a.conf
po4a --verbose doc/manuals/manuals.conf
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please post a "diff" showing the differences between the old po4a.conf file and the new manuals.conf file (both generated in the same representative build environment). Please instruct diff to Ignore differences in space and empty lines.

@rousskov rousskov added S-waiting-for-author author action is expected (and usually required) and removed M-cleared-for-merge https://github.com/measurement-factory/anubis#pull-request-labels S-could-use-an-approval An approval may speed this PR merger (but is not required) labels Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-for-author author action is expected (and usually required)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants