kumquat-buildroot/support/gnuconfig/update
Yann E. MORIN ca7a6ef8aa support/gnuconfig: add update script
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-05-09 14:18:39 +02:00

15 lines
305 B
Bash
Executable File

#!/usr/bin/env bash
set -e
cd "${0%/*}"
git clone https://git.savannah.gnu.org/git/config.git
sha="$(cd config; git log -1 --pretty=tformat:%H)"
sed -r -i -e "\$s/.*/${sha}/" README.buildroot
cp config/config.* .
for p in $(ls patches/*.patch 2>/dev/null); do
patch -p1 < "${p}"
done
rm -rf config