Files
oasis-linux-mirror/scripts/fetch-git.sh
T
Michael Forney 2eddb78d1b Store dist files in config.distdir
This makes it easy to remove old distfiles with `git clean -f dist`.
2026-03-12 16:40:37 -07:00

16 lines
250 B
Bash

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