1
0
mirror of https://github.com/cusspvz/openwrt-builder.docker.git synced 2026-08-20 12:52:57 +00:00

fix: prepare for travis builds

This commit is contained in:
José Moreira
2018-09-10 02:00:24 +01:00
parent a2f0d20e16
commit 760b525481
5 changed files with 52 additions and 7 deletions
+23
View File
@@ -1 +1,24 @@
#!/bin/bash
PROFILE=${PROFILE}
PACKAGES=${PACKAGES}
PATH_SRC=/src
PATH_REPOSITORIES=/repositories
PATH_OVERLAY=/overlay
PATH_OUTPUT=/output
CUSTOM_REPOSITORIES=$(ls $PATH_REPOSITORIES)
CPUS=${CPUS:-2}
CLEAN=${CLEAN:-0}
## HANDLE REPOSITORYS
cp $PATH_SRC/repositories.conf $PATH_SRC/repositories.conf.default
for CUSTOM_REPOSITORY in $CUSTOM_REPOSITORIES; do
echo "src ${CUSTOM_REPOSITORY} file://${PATH_REPOSITORIES}/${CUSTOM_REPOSITORY}" >> $PATH_SRC/repositories.conf
done;
# Build image
make image \
PACKAGES="$PACKAGES" \
FILES="$PATH_OVERLAY" \
BIN_DIR="$PATH_OUTPUT"