Add full source code to example generation

This will just do a `cat` of all Python files in the colorhash/
directory and shove it into a fullsource.in file.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2024-05-30 11:49:42 -07:00
parent eeb51ce510
commit 782c1fc8d1

View File

@@ -7,6 +7,9 @@ matrices=(nibble randomart)
cd "$here/.." cd "$here/.."
# Additionally, get the full source code output as an "in" file, and use that as an example too.
find "colorhash" -type f -name '*.py' -exec cat '{}' ';' >examples/fullsource.in
find "examples" -type f -name '*.in' | \ find "examples" -type f -name '*.in' | \
while read infile; do while read infile; do
for hash in "${hashes[@]}"; do for hash in "${hashes[@]}"; do