Skip to content

M-Film: film simulation for Canon EOS cameras with Magic Lantern. 72 film stocks (Portra, Velvia, Tri-X, CineStill…), a film-camera interface and an in-camera darkroom that develops your RAWs. 5D Mark III, 6D, 600D, 650D, 700D, EOS M and more.

Build tools: a build that worked no longer ends with exit code 141

Claude50a40f2772a3
diff --git a/ml-dev/build_fork.sh b/ml-dev/build_fork.sh
index eba1c2b..462c285 100644
--- a/ml-dev/build_fork.sh
+++ b/ml-dev/build_fork.sh
@@ -201,7 +201,10 @@ if [ -n "$NODARK" ]; then
else
echo "== card files in $OUT =="
fi
-(cd "$OUT" && find . -maxdepth 3 | sort | head -60)
+# the first 60 (sed reads to the end: head stops reading, and a sort still
+# writing the rest of a listing over 4 KB then dies of SIGPIPE, which
+# pipefail made the whole build's exit code, 141, after it had worked)
+(cd "$OUT" && find . -maxdepth 3 | sort | sed -n 1,60p)
# The fork's changes to ML as this build made them, to read: the sources in
# filmos/ and fork/src/ with apply_fork.py are what builds it. Only this