A simple tool to concatenate files.
README.md | ||
stitcher | ||
stitcher.sh |
Stitcher
Stitcher is a tool to concatenate files together in a structured way. It was designed as a build tool for Nova, but might be generally usable.
Usage
Usage:
./stitcher.sh [paths]
Stitcher takes an optional list of paths (files or directories) and concatenates them together. Stitcher operates recursively: if you pass it a directory, it will concatenate all files and subdirectories within that directory.
To guide Stitcher, you can use three special files: .manifest
, .before
and .after
.
.manifest
: A list of paths for Stitcher to process, ordered from top to bottom..before
: A list of paths to process before.manifest
..after
: A list of paths to process after.manifest
.
Stitcher always looks at these three special files in your current working directory before processing arguments.
If a path doesn't exist or cannot be resolved, Stitcher will simply skip it.