3 # Usage: ./misc/test/check-patches.sh
5 # Bash script that checks for any of the patches failing to apply.
6 # Read patches/README.md for more information.
8 export PATCH_OPTS="--merge"
9 patches=("O_COLEMAK" "O_GITSTATUS" "O_NAMEFIRST" "O_RESTOREPREVIEW")
10 z=$(( 1 << ${#patches[@]} ))
15 for ((n=1; n < z; ++n)); do
16 for ((i=0; i < ${#patches[@]}; ++i)); do
17 printf "%s=%d " "${patches[$i]}" "$(( (n & (1 << i)) != 0 ))"
18 done | tee "/dev/stderr" | (
20 if ! xargs make 2>&1; then