diff options
-rwxr-xr-x | scripts/sync_patches.sh | 24 |
1 files changed, 24 insertions, 0 deletions
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 <procd git repository>" + 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 |