Skip to content

Commit c3999bf

Browse files
authored
install_vim.sh: allow to pass through configure flags (#22)
1 parent 42357af commit c3999bf

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ Flag | Description
5151
`-ruby` | Build with Ruby.
5252
`-lua` | Build with Lua.
5353

54+
All other arguments (up until `-build`) will be passed through to
55+
`./configure`, e.g. `--disable-FEATURE` etc.
56+
5457

5558
### Build
5659

scripts/install_vim.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ init_vars() {
1313
PYTHON=0
1414
RUBY=0
1515
LUA=0
16+
CONFIGURE_OPTIONS=
1617
}
1718

1819
build() {
@@ -45,6 +46,10 @@ build() {
4546
apk add lua-dev
4647
fi
4748

49+
if [ -n "$CONFIGURE_OPTIONS" ]; then
50+
CONFIG_ARGS="$CONFIG_ARGS $CONFIGURE_OPTIONS"
51+
fi
52+
4853
cd /vim
4954

5055
BUILD_DIR="vim-${TAG#v}"
@@ -111,6 +116,9 @@ while [ $# -gt 0 ]; do
111116
build
112117
init_vars
113118
;;
119+
*)
120+
CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $1"
121+
;;
114122
esac
115123

116124
shift

0 commit comments

Comments
 (0)