From cfbb923b0d63454ee052871d9944c69fd712317e Mon Sep 17 00:00:00 2001 From: uazo <29201891+uazo@users.noreply.github.com> Date: Thu, 24 Mar 2022 16:26:38 +0100 Subject: [PATCH] check for changed and contrib folders --- export-all-patch.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/export-all-patch.sh b/export-all-patch.sh index 3489ce5..e3be744 100644 --- a/export-all-patch.sh +++ b/export-all-patch.sh @@ -32,3 +32,14 @@ for patch in $ALLPATCHS_E; do bash ~/bromite-buildtools/export-single-patch.sh $patch $PATCH_FILE done + +PATCH_LIST=~/bromite/build/bromite_patches_list.txt +mkdir ~/bromite/build/patches-new/changed +mkdir ~/bromite/build/patches-new/contrib +for current_file in $(cat $PATCH_LIST); do + if [[ $current_file =~ ^changed/.* ]]; then + mv ~/bromite/build/patches-new/$(basename $current_file) ~/bromite/build/patches-new/changed + elif [[ $current_file =~ ^contrib/.* ]]; then + mv ~/bromite/build/patches-new/$(basename $current_file) ~/bromite/build/patches-new/contrib + fi +done