aboutsummaryrefslogtreecommitdiff
path: root/extra/bash/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/bash/build')
-rwxr-xr-xextra/bash/build6
1 files changed, 4 insertions, 2 deletions
diff --git a/extra/bash/build b/extra/bash/build
index abc3769a..964fa339 100755
--- a/extra/bash/build
+++ b/extra/bash/build
@@ -1,7 +1,9 @@
#!/bin/sh -e
-for patch in bash51-0??; do
- patch -p0 < "$patch"
+bash_maj=${2%%.*}
+bash_min=${2%.p*} bash_min=${bash_min#$bash_maj.}
+for patch in "bash$bash_maj$bash_min-"0??; do
+ [ -f "$patch" ] && patch -p0 < "$patch"
done
./configure \