patches/apply.sh

5 lines
221 B
Bash
Executable file

#!/bin/bash
# Always execute in the script's directory
pushd "$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
find . -name "*.patch" -printf "%h\n" | uniq | xargs -I{} bash -c "cd $(pwd)/../{}; git am $(pwd)/{}/*"