ref: 1180597e6d69c6012d3d70259e559b3010df6a87
parent: 2ddebfff4c9d7596046acfac764a4d295499b18d
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue Oct 29 11:47:15 EDT 2024
boot2h: slightly smaller boot file - remove most of indentation and newlines
--- a/boot2h.sh
+++ b/boot2h.sh
@@ -1,3 +1,4 @@
#!/bin/sh
set -e
-sed 's#\\#\\\\#g;s#"#\\"#g;s#^#"#g;s#$#\\n"#g' $*
+sed -E 's#^[ ]+##g' $* | tr '
+' ' ' | sed 's#\\#\\\\#g;s#"#\\"#g;s#^#"#g;s#$#\\n"#g'