diff options
author | Michael Reed <top@secret> | 2017-07-05 13:39:04 -0400 |
---|---|---|
committer | Michael Reed <top@secret> | 2017-07-05 13:39:04 -0400 |
commit | 497a49162f7c8b5c1d7c653087b0ac6c8e5765f9 (patch) | |
tree | 4406875de167e2a801cb1089c56581b7d2910905 /docs/install/x60flashscript.patch | |
parent | 693c014d21038c100c7ef0425ea5c006d0ba040e (diff) | |
download | librebootfr-497a49162f7c8b5c1d7c653087b0ac6c8e5765f9.tar.gz librebootfr-497a49162f7c8b5c1d7c653087b0ac6c8e5765f9.zip |
docs/publish.sh: Fix sed(1) invocation on OpenBSD
On OpenBSD, publish.sh errors out at the following call
to sed(1) (from "bash -x publish.sh"):
+ sed temp.md -i -e 's/\.md\(#[a-z\-]*\)*)/.html\1)/g'
sed: 1: "temp.md": undefined label 'emp.md'
It seems that "temp.md" is being parsed by sed as a sed command,
not as a named file. This is likely due to OpenBSD's strict
usage requirements for sed:
usage: sed [-aEnru] [-i[extension]] command [file ...]
sed [-aEnru] [-e command] [-f command_file] [-i[extension]] [file ...]
As shown above, the sed command must always come before any named
files. This commit does that, which fixes publish.sh with OpenBSD's sed.
This is also tested and working with GNU sed v4.2.2
Diffstat (limited to 'docs/install/x60flashscript.patch')
0 files changed, 0 insertions, 0 deletions