shithub: sl

Download patch

ref: 90e1fbe6e6ca1f2cbbe977748f6fe46d94bed918
parent: 92daaa07bf7589ba44e450a888866f650342b367
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'