mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 12:29:08 +08:00
32 lines
532 B
Plaintext
32 lines
532 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
declare -a OUT_OPTIONS
|
||
|
|
||
|
INTERPRETER=perl
|
||
|
|
||
|
LAST_SEEN=
|
||
|
COPY_OPTIONS=no
|
||
|
for OPTION; do
|
||
|
case "${OPTION},${COPY_OPTIONS}" in
|
||
|
*/Configure,no)
|
||
|
OUT_OPTIONS+=("${OPTION}")
|
||
|
INTERPRETER="${LAST_SEEN}"
|
||
|
COPY_OPTIONS=yes
|
||
|
;;
|
||
|
--prefix=*|--openssldir=*|--libdir=*|--debug,*)
|
||
|
OUT_OPTIONS+=("${OPTION}")
|
||
|
;;
|
||
|
-*|*=*)
|
||
|
;;
|
||
|
*,yes)
|
||
|
OUT_OPTIONS+=("${OPTION}")
|
||
|
;;
|
||
|
esac
|
||
|
LAST_SEEN="${OPTION}"
|
||
|
done
|
||
|
|
||
|
set -x
|
||
|
"${INTERPRETER}" ${OUT_OPTIONS[@]}
|