aboutsummaryrefslogtreecommitdiff
path: root/extra/readline/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2022-09-27 18:09:00 +0200
committerCem Keylan <cem@ckyln.com>2022-09-27 18:10:03 +0200
commit452598545790ff0d7efb2215b9877daa810daa38 (patch)
tree0470c7c40c3a6359155810d6b3ef4779094569a0 /extra/readline/build
parentf6fd02a8813179218a56067785b522110c474279 (diff)
downloadrepository-452598545790ff0d7efb2215b9877daa810daa38.tar.gz
readline: bump to 8.2
Diffstat (limited to 'extra/readline/build')
-rwxr-xr-xextra/readline/build11
1 files changed, 4 insertions, 7 deletions
diff --git a/extra/readline/build b/extra/readline/build
index 88cdea25..7649424d 100755
--- a/extra/readline/build
+++ b/extra/readline/build
@@ -3,13 +3,10 @@
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
-}
+rl_maj=${2%%.*} rl_min=${2%.p*} rl_min=${rl_min#$rl_maj.}
+for patch in "readline$rl_maj$rl_min-"0??; do
+ [ -f "$patch" ] && patch -p0 < "$patch"
+done
./configure \
--prefix=/usr