Dist::...Archive(3pm)

πŸ“¦
version 0.050 Β· 3 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

Dist::Zilla::Plugin::Run::BeforeArchive β€” bestie, this lil plugin runs a command for your dist before the archive gets built. Like, right before the tarball era begins. It's giving pre-game ritual energy. ✨

(Also hi, you're reading the User Contributed Perl Documentation version of this page, just so you know who wrote all this down for you 🫢)


🌸 VERSION 🌸

version 0.050 β€” yeah, she's got a number, she's got a vibe. πŸ’…


✨ SYNOPSIS ✨

Okay so in your dist.ini you literally just drop this in:

[Run::BeforeArchive]
run = script/do_this.pl --dir %d --version %v
run = script/do_that.pl

That's it. That's the whole setup. Iconic. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea: this plugin executes the specified command right before the archive file is built. Before. Not after. Before. Timing is everything, bestie. ⏰

If you've got stuff that needs to happen β€” scripts to run, things to poke, whatever β€” and it has to happen before the tarball gets sealed up, this is your girl. πŸ’–


πŸŽ€ POSITIONAL PARAMETERS πŸŽ€

Wanna know what those funky little %d and %v things are? Same, girl.

Go check out "CONVERSIONS" in Dist::Zilla::Plugin::Run β€” that's where the full list of common formatting variables lives, and those variables are available to all the plugins, not just this one. iykyk. πŸ”₯


πŸ™ˆ SUPPORT πŸ™ˆ

Found a bug? First of all, no cap, it happens. Here's where to yell about it:


πŸ‘‘ AUTHOR πŸ‘‘

Torsten Raudssus <torsten@raudss.us> <https://raudss.us/> β€” the main character who made this happen. Respect. 🫑


This software is copyright (c) 2010 by Raudssus Social Software <https://raudss.us/>.

And listen β€” this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Free as in, go wild (within the terms, obviously). πŸ’–


K byeeee, this page was served up by perl v5.38.2 on 2024-06-07, and it came to you courtesy of Dist::...Archive(3pm). Slay, go build that archive. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from