18 lines
309 B
Bash
Executable File
18 lines
309 B
Bash
Executable File
#!/bin/sh
|
|
# vim: set sw=4 ts=4 sts=4 et :
|
|
|
|
if [ -f u-boot/.patched ]; then
|
|
exit 0
|
|
fi
|
|
|
|
rc=0
|
|
cd u-boot || exit
|
|
for x in ../patches/uboot/*.patch; do
|
|
[ -f "${x}" ] || continue
|
|
printf 'Applying patch %s ...\n' "${x##*/}"
|
|
patch -p1 < "${x}" || rc=$?
|
|
done
|
|
if [ $rc -eq 0 ]; then
|
|
: > .patched
|
|
fi
|