summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2018-11-29 23:57:18 +0000
committerMikael Magnusson <mikma@users.sourceforge.net>2018-11-29 23:57:18 +0000
commit6ff9fb59db46a4d56be53dfd803c19a7c1083bc5 (patch)
treefe13438f7b952947a89019a4da92e896c9395501 /scripts
parent53fea93696af35da29110ff603fbc19b8616b1dc (diff)
Add patches sync script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/sync_patches.sh24
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