mirror of
https://github.com/oasislinux/oasis.git
synced 2026-05-17 17:33:30 +02:00
4d42d8a3eb
This way you can rename them to skip application.
29 lines
485 B
Bash
29 lines
485 B
Bash
set -e
|
|
|
|
if [ "$#" != 1 ] ; then
|
|
echo 'usage: fetch-curl.sh dir' >&2
|
|
exit 2
|
|
fi
|
|
|
|
dir=$1
|
|
shift
|
|
|
|
cd "$dir"
|
|
|
|
if [ -e src ] ; then
|
|
rm -rf src
|
|
fi
|
|
|
|
if ! sh "$OLDPWD/scripts/checksum.sh" -c sha256 2>/dev/null ; then
|
|
curl -L -K url -O
|
|
sh "$OLDPWD/scripts/checksum.sh" -c sha256
|
|
fi
|
|
|
|
while read -r _ archive ; do
|
|
sh "$OLDPWD/scripts/extract.sh" "$archive" -s ',^[^/]*,src,' '*/*'
|
|
done <sha256
|
|
|
|
if [ -d patch ] ; then
|
|
git apply -v --whitespace=nowarn --directory "$dir/src" patch/*.patch
|
|
fi
|