From 782c1fc8d19b07d163169a207daa7d6e28efefb8 Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Thu, 30 May 2024 11:49:42 -0700 Subject: [PATCH] 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 --- tools/genexamples.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/genexamples.sh b/tools/genexamples.sh index 9e51436..b2c2bd3 100755 --- a/tools/genexamples.sh +++ b/tools/genexamples.sh @@ -7,6 +7,9 @@ matrices=(nibble randomart) 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' | \ while read infile; do for hash in "${hashes[@]}"; do