Plake is a software that allows you to maintain sections within a single file.
Version: 0.01Plake is a software that allows you to maintain sections within a single file (usually, variations of the same code/markup/content) and then assemble variations of that file according to which target you call. It was inspired by Make, can be used in conjunction with Make, and is written in Perl, hence the name "Plake".
Operating System: Linux
It uses a very simple grammar, and allows you to define sections within a given text file, then define targets that assemble the sections you want, and optionally, specify a path where the assembled section will be written to disk as a new file.
Let's say you have a C++ source file that gets built for the Windows platform and also for Linux. Keep the differences as sections in a single Plake file, then when you assemble the .cpp file for the given platform, it only contains that platform's code.
The following commands both produce "myfile.cpp" (but possibly at different folder locations) with only the code that each platform needs:
plake file=myfile.plk target=windows_build
plake file=myfile.plk target=linux_build
Plake runs in two modes.
1. "Top-down/lazy", the default mode, which includes all sections for a given target plus lines from the file that do not have a defined section. The output is assembled top-down. This is useful for when you only need small variations of a file to be made, and want to keep Plake to a minimum.
2. "Stickler", which means that any text not attributed to a named section is ignored, and sections are assembled in the order that they are passed into target(). This means you have specific ideas about how the output will be assembled and don't want Plake to try and be intelligent about it.
What's New in This Release:
· This release allows "lazy/top-down" or "stickler" building of targets, overriding the default "builder" routine, checks to see whether targets are up-to-date, and does caching.