mirror of
https://github.com/oasislinux/oasis.git
synced 2026-05-12 21:34:47 +02:00
2eddb78d1b
This makes it easy to remove old distfiles with `git clean -f dist`.
16 lines
250 B
Bash
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
|