mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
21dfd7289b
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>
33 lines
637 B
Diff
33 lines
637 B
Diff
--- a/bc/fix-libmath_h
|
|
+++ b/bc/fix-libmath_h
|
|
@@ -1,9 +1,9 @@
|
|
-ed libmath.h <<EOS-EOS
|
|
-1,1s/^/{"/
|
|
-1,\$s/\$/",/
|
|
-2,\$s/^/"/
|
|
-\$,\$d
|
|
-\$,\$s/,\$/,0}/
|
|
-w
|
|
-q
|
|
-EOS-EOS
|
|
+#!/usr/bin/env bash
|
|
+sed -e '1 s/^/{"/' \
|
|
+ -e 's/$/",/' \
|
|
+ -e '2,$ s/^/"/' \
|
|
+ -e '$ d' \
|
|
+ -i libmath.h
|
|
+
|
|
+sed -e '$ s/$/0}/' \
|
|
+ -i libmath.h
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -5288,7 +5288,7 @@ case $bcle-$bcrl-$LEX in
|
|
?-?-flex)
|
|
LEX="flex -I -8" ;;
|
|
?-y-*)
|
|
- as_fn_error $? "readline works only with flex." "$LINENO" 5 ;;
|
|
+ : ;; # as_fn_error $? "readline works only with flex." "$LINENO" 5 ;;
|
|
esac
|
|
|
|
case $LEX-`uname -s` in
|