From 6ff9fb59db46a4d56be53dfd803c19a7c1083bc5 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Thu, 29 Nov 2018 23:57:18 +0000 Subject: Add patches sync script --- scripts/sync_patches.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 scripts/sync_patches.sh diff --git a/scripts/sync_patches.sh b/scripts/sync_patches.sh new file mode 100755 index 0000000..c47b23d --- /dev/null +++ b/scripts/sync_patches.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +usage() { + echo "Usage: $0 " + exit 1 +} + +if [ $# -ne 1 ]; then + usage +fi + +repo=$1 +tmpdir=/tmp/procd.$$ + +git clone $repo $tmpdir + +for ver in openwrt-18.06 master; do + outdir=$(pwd)/patches/procd-$ver + git rm $outdir/00* + (cd $tmpdir && git format-patch --output-directory $outdir origin/$ver...origin/lxd/$ver) + git add $outdir/00* +done -- cgit v1.2.3