projects
/
openwrt
/
staging
/
mans0n.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3e4a0d
)
tools/bc: use more compatible shebang
author
Ilya Katsnelson
<me@0upti.me>
Thu, 8 Sep 2022 09:04:05 +0000
(12:04 +0300)
committer
Christian Marangi
<ansuelsmth@gmail.com>
Tue, 13 Sep 2022 22:06:15 +0000
(
00:06
+0200)
Update the existing patch to use a shebang that works on systems that
don't have a /bin/bash, e.g. NixOS or GuixSD.
Signed-off-by: Ilya Katsnelson <me@0upti.me>
tools/bc/patches/002-fix-libmath.patch
patch
|
blob
|
history
diff --git
a/tools/bc/patches/002-fix-libmath.patch
b/tools/bc/patches/002-fix-libmath.patch
index 1a8439542da0a1db751578e4c041dbb9dd4c7979..f2212f0953fdb827b8480722634b501162d3b1b9 100644
(file)
--- a/
tools/bc/patches/002-fix-libmath.patch
+++ b/
tools/bc/patches/002-fix-libmath.patch
@@
-10,7
+10,7
@@
-w
-q
-EOS-EOS
-+#!
/bin/
bash
++#!
/usr/bin/env
bash
+sed -e '1 s/^/{"/' \
+ -e 's/$/",/' \
+ -e '2,$ s/^/"/' \