Skip to content

Commit 8f9f9d9

Browse files
committed
manual-generate: start bringing data dir over
1 parent b80434e commit 8f9f9d9

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

scripts/manual-generate.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ echo " "
3939
echo "scripts (Directory)"
4040
echo " functions.sh"
4141
echo " fetch_packages.sh"
42+
echo " data (Directory"
4243
echo "configs (Directory)"
4344
echo " feeds.conf.default <-- Can use the default version if you want"
4445
echo " wrtmulti.config <-- This is needed regardless unless you change the name"
@@ -56,6 +57,11 @@ if [ ! -f "$FILE" ]; then
5657
echo "$FILE does not exist."
5758
exit
5859
fi
60+
FILE=data
61+
if [ ! -d "$FILE" ]; then
62+
echo "$FILE does not exist."
63+
exit
64+
fi
5965
FILE=feeds.conf.default
6066
if [ ! -f "$FILE" ]; then
6167
echo "$FILE does not exist."
@@ -107,6 +113,21 @@ CCACHE_SETUP
107113
#DEFAULT_THEME_CHANGE
108114
REMOVE_LANGUAGES
109115

116+
117+
APPLY_PR_PATCHES_MANUAL() {
118+
echo "This is WORKING Here:"
119+
file=data/PR_patches.txt
120+
while read -r line; do
121+
if [ "$line" = "" ]; then continue
122+
fi
123+
cd "$GITHUB_WORKSPACE"/openwrt && wget https://patch-diff.githubusercontent.com/raw/openwrt/openwrt/pull/"$line".patch
124+
echo "Applying $line.patch"
125+
git am "$line".patch || error_return "Patch Failed, Aborting Patch"
126+
done < "$file"
127+
}
128+
129+
APPLY_PR_PATCHES_MANUAL
130+
110131
echo "Make Menuconfig"
111132
make menuconfig
112133

0 commit comments

Comments
 (0)