aboutsummaryrefslogtreecommitdiff
path: root/extra/readline/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-05-04 22:56:09 +0300
committerCem Keylan <cem@ckyln.com>2021-05-04 22:56:09 +0300
commit889011228deffab60efdcca1380ba14eeb6f134c (patch)
tree707dbe5296938627c9eaf931538dfb6ac8c3ccb8 /extra/readline/build
parenta5da1d29073c92c81b71f6786b2e5aaf7ea02a3a (diff)
downloadrepository-889011228deffab60efdcca1380ba14eeb6f134c.tar.gz
readline: bump to 8.1p1
Diffstat (limited to 'extra/readline/build')
-rwxr-xr-xextra/readline/build9
1 files changed, 9 insertions, 0 deletions
diff --git a/extra/readline/build b/extra/readline/build
index b19251e0..88cdea25 100755
--- a/extra/readline/build
+++ b/extra/readline/build
@@ -2,6 +2,15 @@
export CFLAGS="$CFLAGS -fPIC"
+# I am really tired of how bash and readline handles patches.
+[ "${2##*p*}" ] || {
+ maj=${2%%.*}
+ min=${2%%p*} min=${min##*.}
+ for patch in "readline$maj$min"-0??; do
+ patch -p0 < "$patch"
+ done
+}
+
./configure \
--prefix=/usr