UPDATE-PERL-SAX-PARSERS(8)

πŸ“¦
version 1.02 Β· 2 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– update-perl-sax-parsers πŸ’–

okay so bestie, welcome to update-perl-sax-parsers β€” it's a section 8 (sysadmin) manual page from the Debian crew, and it's literally the little script that keeps your Perl SAX parsers registered and un-registered. it's giving backstage-pass energy for your XML parsers. πŸŽ€


✨ NAME ✨

update-perl-sax-parsers β€” (de)register Perl SAX parser modules πŸ¦‹


🌸 SYNOPSIS 🌸

update-perl-sax-parsers [options] --add parser_module
update-perl-sax-parsers [options] --remove parser_module
update-perl-sax-parsers [options] --update

πŸ’« DESCRIPTION πŸ’«

so what does she actually do? update-perl-sax-parsers inserts, updates and removes individual Perl SAX parser module info files in the directory /var/lib/libxml-sax-perl/ParserDetails.d ✨ and also handles the overall Perl SAX parser modules info file /etc/perl/XML/SAX/ParserDetails.ini. two files, one icon, no cap. πŸ‘‘


πŸŽ€ OPTIONS πŸŽ€

  • --add β€” Adds the per-module info file for the indicated Perl SAX parser module to the directory /var/lib/libxml-sax-perl/ParserDetails.d. πŸ’–
  • --remove β€” Removes the per-module info file for Perl SAX parser module from the directory /var/lib/libxml-sax-perl/ParserDetails.d. bye bestie πŸ‘‹
  • --update β€” updates the overall Perl SAX parser modules info file /etc/perl/XML/SAX/ParserDetails.ini. The modules will be listed in an order of ascending priority. See the PARSER PRIORITIES section below. πŸ“ˆ

The file will be managed with ucf(1), unless the --file option is used. See also the --ucf option below.

  • --directory β€” When used with --add or with --remove indicates the ParserDetails.d directory to use for storing the per-module Perl SAX parser module info file. When used one or more times with --update indicates the ParserDetails.d directories to be used as source for generating the ParserDetails.ini file. Default is /var/lib/libxml-sax-perl/ParserDetails.d. πŸ—‚οΈ
  • --file β€” Indicates the ParserDetails.ini file up be updated. Default is /etc/perl/XML/SAX/ParserDetails.ini. πŸ“„
  • --priority XX β€” Specifies the priority of the SAX parser module to be added removed. The priority will be encoded to the filename of the ParserDetails.d entry. See the PARSER PRIORITIES section below. πŸ”’

This option was added in version 0.3 of update-perl-sax-parsers. Use the value "0" to disable the encoding and match the behaviour of earlier versions of the script.

The default priority value is 50, unless --directory was specified, in which case the default is 0 (disabled.)

  • --ucf X β€” Forcibly enable (X != 0) or disable (X = 0) of ucf(1). By default, ucf(1) will be used to manage the ParserDetails.ini file when --file is not specified. βš™οΈ
  • --quiet β€” Prevents any diagnostic output. 🀫
  • --test β€” Prevents the modification of any files and enables debugging mode. πŸ§ͺ
no fr, --test will not touch a single file, it just vibes and debugs. safe queen behaviour.
  • --version β€” Displays the version information and exits. 🏷️
  • --help β€” Display the usage information and exits. πŸ†˜

πŸ”₯ PARSER PRIORITIES πŸ”₯

Starting with version 0.3 of update-perl-sax-parsers, the parsers are assigned a priority value that is encoded into the names of the files in the ParserDetails.d directory. Specifically, the file name will be "XX-Some::Module", where XX denotes the priority and Some::Module is the name of the parser module. πŸ’…

When --update is called, the parsers are listed in an order of ascending priority into the ParserDetails.ini file. The last parser in the file, ie. the one with the highest priority, is the default XML::SAX parser. πŸ‘‘

Parsers with the same priority are sorted alphabetically by their name. This is contrary to the behaviour of earlier versions, where the sort order was undefined and depended on the underlying file system. so yeah β€” the order is deterministic now, we love to see it.


πŸ’€ NOTE πŸ’€

Installing the original package from CPAN into /usr/local breaks the Debian package, since the former is in Perl's @INC before the latter. So, please don't do this. πŸ™ˆ

for real, don't do it. it will break everything and we will both cry.

If there's a new version of XML::SAX simply file a wishlist against the Debian package and wait for the update. 🫢


🌈 SEE ALSO 🌈

/usr/share/doc/libxml-sax-perl/README.Debian


πŸ‘‘ AUTHORS πŸ‘‘

  • Ardo van Rangelrooij <ardo@debian.org>
  • Niko Tyni <ntyni@iki.fi>

Copyright Β© 2001-2003 Ardo van Rangelrooij

Copyright Β© 2007 Niko Tyni

This is free software; see the GNU General Public Licence version 2 or later for copying conditions. There is no warranty.


and that's the whole page bestie!! πŸŽ€ this one is version 0.3, dated Nov 2007, and it's the Debian flavour of the manual. go forth and register your parsers responsibly. periodt. πŸ’–βœ¨

πŸ“¦ where this page comes from