https://github.com/begriffs/incl
Preprocessor to include files into output stream
https://github.com/begriffs/incl
Last synced: 5 months ago
JSON representation
Preprocessor to include files into output stream
- Host: GitHub
- URL: https://github.com/begriffs/incl
- Owner: begriffs
- Created: 2019-01-01T19:14:11.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-01T19:16:11.000Z (about 7 years ago)
- Last Synced: 2025-01-10T17:50:18.102Z (about 1 year ago)
- Language: C
- Size: 1000 Bytes
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Include/expand files
A simple preprocessor that can recursively include the contents of multiple
files into an output stream. (Think of it like "m4 lite.")
### Usage
```bash
echo -n "foo" > name.txt
cat << EOF | ./incl
Hello #incl(name.txt), how are you?
This is a template, #incl(name.txt).
EOF
```
### Installation
Because of make's default suffix rules, build simply with:
```
make incl
```
Optionally copy the binary to your path.