diff options
-rwxr-xr-x | src/BuildIt.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/BuildIt.sh b/src/BuildIt.sh index 18f9818..883aa3b 100755 --- a/src/BuildIt.sh +++ b/src/BuildIt.sh | |||
@@ -29,6 +29,34 @@ fi | |||
29 | echo "" | 29 | echo "" |
30 | echo "" | 30 | echo "" |
31 | 31 | ||
32 | if [ ! -d git-sub-modules/json-builder ]; then | ||
33 | pushd git-sub-modules >/dev/null | ||
34 | git clone https://github.com/json-parser/json-builder.git | ||
35 | popd >/dev/null | ||
36 | else | ||
37 | pushd git-sub-modules/json-builder >/dev/null | ||
38 | echo "Updating json-builder." | ||
39 | # git pull | ||
40 | popd >/dev/null | ||
41 | fi | ||
42 | |||
43 | echo "" | ||
44 | echo "" | ||
45 | |||
46 | if [ ! -d git-sub-modules/json-parser ]; then | ||
47 | pushd git-sub-modules >/dev/null | ||
48 | git clone https://github.com/json-parser/json-parser.git | ||
49 | popd >/dev/null | ||
50 | else | ||
51 | pushd git-sub-modules/json-parser >/dev/null | ||
52 | echo "Updating json-parser." | ||
53 | # git pull | ||
54 | popd >/dev/null | ||
55 | fi | ||
56 | |||
57 | echo "" | ||
58 | echo "" | ||
59 | |||
32 | if [ ! -d git-sub-modules/luajit ]; then | 60 | if [ ! -d git-sub-modules/luajit ]; then |
33 | pushd git-sub-modules >/dev/null | 61 | pushd git-sub-modules >/dev/null |
34 | git clone https://luajit.org/git/luajit-2.0.git | 62 | git clone https://luajit.org/git/luajit-2.0.git |
@@ -108,9 +136,14 @@ if [ ! -d build/toybox ]; then | |||
108 | ln -fs ../toys/sledjchisl/fcgi_SC.h build/toybox/lib | 136 | ln -fs ../toys/sledjchisl/fcgi_SC.h build/toybox/lib |
109 | ln -fs ../toys/boxes/handlekeys.c build/toybox/lib | 137 | ln -fs ../toys/boxes/handlekeys.c build/toybox/lib |
110 | ln -fs ../toys/boxes/handlekeys.h build/toybox/lib | 138 | ln -fs ../toys/boxes/handlekeys.h build/toybox/lib |
139 | ln -fs ../../../git-sub-modules/json-builder/json-builder.c build/toybox/lib | ||
140 | ln -fs ../../../git-sub-modules/json-builder/json-builder.h build/toybox/lib | ||
141 | ln -fs ../../../git-sub-modules/json-parser/json.c build/toybox/lib | ||
142 | ln -fs ../../../git-sub-modules/json-parser/json.h build/toybox/lib | ||
111 | 143 | ||
112 | pushd build/toybox >/dev/null | 144 | pushd build/toybox >/dev/null |
113 | sed -e "s/strend(/tb_strend(/g" -i lib/lib.h | 145 | sed -e "s/strend(/tb_strend(/g" -i lib/lib.h |
146 | sed -e 's/<json.h>/"json.h"/g' -i lib/json-builder.h | ||
114 | find ./ -type f -name "*.c" -exec sed -e "s/strend(/tb_strend(/g" -i {} \; | 147 | find ./ -type f -name "*.c" -exec sed -e "s/strend(/tb_strend(/g" -i {} \; |
115 | make clean | 148 | make clean |
116 | #make defconfig | 149 | #make defconfig |