From e273e41e17e7873d96f6b1bd54da2f841e13402c Mon Sep 17 00:00:00 2001 From: Howard Su Date: Thu, 17 Jun 2021 18:06:51 +0800 Subject: [PATCH] Add scripts to manage the patches --- scripts/apply.sh | 11 +++++++++++ scripts/collect.sh | 11 +++++++++++ scripts/revert.sh | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100755 scripts/apply.sh create mode 100755 scripts/collect.sh create mode 100755 scripts/revert.sh diff --git a/scripts/apply.sh b/scripts/apply.sh new file mode 100755 index 0000000..092c777 --- /dev/null +++ b/scripts/apply.sh @@ -0,0 +1,11 @@ +cd plutosdr-fw +git apply ../patches/fw.diff +cd hdl +git apply ../../patches/hdl.diff +cd ../linux +git apply ../../patches/linux.diff +cd ../u-boot-xlnx +git apply ../../patches/u-boot-xlnx.diff +cd ../buildroot +git apply ../../patches/buildroot.diff +cd ../.. diff --git a/scripts/collect.sh b/scripts/collect.sh new file mode 100755 index 0000000..6433c83 --- /dev/null +++ b/scripts/collect.sh @@ -0,0 +1,11 @@ +cd plutosdr-fw +git diff > ../patches/fw.diff +cd hdl +git diff > ../../patches/hdl.diff +cd ../linux +git diff > ../../patches/linux.diff +cd ../u-boot-xlnx +git diff > ../../patches/u-boot-xlnx.diff +cd ../buildroot +git diff > ../../patches/buildroot.diff +cd ../.. diff --git a/scripts/revert.sh b/scripts/revert.sh new file mode 100755 index 0000000..3bc4241 --- /dev/null +++ b/scripts/revert.sh @@ -0,0 +1,11 @@ +cd plutosdr-fw +git checkout . +cd hdl +git checkout . +cd ../linux +git checkout . +cd ../buildroot +git checkout . +cd ../u-boot-xlnx +git checkout . +cd ../..