12345678910111213141516171819202122232425262728 |
- #!/bin/bash
- set -x -e
- # Clean up
- rm -rf gluon
- git clone https://github.com/freifunk-gluon/gluon.git gluon -b "${GLUON_TAG}"
- # Add site configuration
- mkdir -p gluon/site
- cp /usr/src/site.mk gluon/site/
- cp /usr/src/site.conf gluon/site/
- cp -r /usr/src/i18n gluon/site/
- # Build
- cd gluon
- make update
- for target in $(ls targets)
- do
- echo "Building for target $target"
- time make -j $(($(nproc)+1)) BROKEN=1 GLUON_TARGET=$target
- done
- set +x
- echo -e "\nBUILD FINISHED\n"
- echo "You can copy the resulting images from the container using:"
- echo -e "\ndocker cp ${HOSTNAME}:/usr/src/build/gluon/images <destination>\n"
|