File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,21 @@ rm -rf avrdude-6.3 libusb-1.0.20 libusb-compat-0.1.5 libusb-win32-bin-1.2.6.0 li
7676./libelf-0.8.13.build.bash
7777./avrdude-6.3.build.bash
7878
79- rm -f avrdude-${OUTPUT_VERSION} -${OUTPUT_TAG} .tar.bz2
80- cp -a objdir avrdude
81- tar -cjvf avrdude-${OUTPUT_VERSION} -${OUTPUT_TAG} .tar.bz2 avrdude
82- rm -r avrdude
79+ # if producing a windows build, compress as zip and
80+ # copy *toolchain-precompiled* content to any folder containing a .exe
81+ if [[ ${OUTPUT_TAG} == * " mingw" * ]] ; then
82+
83+ rm -f avrdude-${OUTPUT_VERSION} -${OUTPUT_TAG} .zip
84+ cp -a objdir avrdude
85+ zip -r avrdude-${OUTPUT_VERSION} -${OUTPUT_TAG} .zip avrdude
86+ rm -r avrdude
87+
88+ else
89+
90+ rm -f avrdude-${OUTPUT_VERSION} -${OUTPUT_TAG} .tar.bz2
91+ cp -a objdir avrdude
92+ tar -cjvf avrdude-${OUTPUT_VERSION} -${OUTPUT_TAG} .tar.bz2 avrdude
93+ rm -r avrdude
94+
95+ fi
8396
You can’t perform that action at this time.
0 commit comments