fetch-git.sh (231B)
1 set -e 2 3 if [ "$#" != 1 ] ; then 4 echo 'usage: fetch-git.sh dir' >&2 5 exit 2 6 fi 7 8 cd "$1" 9 10 git submodule update --init --checkout src 11 if [ -d patch ] ; then 12 git -C src am --keep-non-patch --whitespace=nowarn "$PWD"/patch/*.patch 13 fi