Files
oasis-linux-mirror/scripts/fetch-git.sh
Michael Forney 4d42d8a3eb Only apply patches ending in .patch
This way you can rename them to skip application.
2022-10-30 15:31:37 -07:00

14 lines
231 B
Bash

set -e
if [ "$#" != 1 ] ; then
echo 'usage: fetch-git.sh dir' >&2
exit 2
fi
cd "$1"
git submodule update --init --checkout src
if [ -d patch ] ; then
git -C src am --keep-non-patch --whitespace=nowarn "$PWD"/patch/*.patch
fi