WIP README

This commit is contained in:
anon 2024-01-13 16:05:56 +01:00
parent abea78e65e
commit 24c9fc4e21

@ -1,2 +1,34 @@
# PLUG - PlacehoLder Un- and Generator
# Plug
> PLUG - PlacehoLder Un- and Generator; for inplace metaprogramming or easy payload embeding
A complementary tool for traditional preprocessors to avoid adding a redundant step of translation to every update.
### In practice
### Why?
Multiple reasons actually:
#### In place metaprogramming
Think preprocessors.
Only the most well adapted preprocessors have the privilage to have inplace operation support,
as the standard C preprocessor does.
However if one wishes to do something more hacky,
perhaps with the m4 preproccessor,
one would end up with `mysource.extension.m4`.
Which would be annoying to edit for multiple reasons:
+ getting the right highlighting is most likely painful to setup
+ a new intermediate file (mysource.extension) is introduced, which could be edited by accident
+ in case of large files, the reason/extend of using m4 becomes obfuscated by the dominating original format
#### Emeding
Say you wish to make a shell script selfcontained,
but it relies on an external file.
It sounds self-condradicory,
however it could come up when,
say one of the tools involved need large amounts of binary data.
Imagine an installer for example that must unpack a tar.
Before you wonder if I had made this twisted hack up, I can prove the contrary:
https://www.xmodulo.com/embed-binary-file-bash-script.html