diff --git a/.travis.yml b/.travis.yml index 4c30de9..01eb9c7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,7 +47,7 @@ install: script: - bash ${TRAVIS_BUILD_DIR}/bootstrap.sh ${TARGET} - - bash ${TRAVIS_BUILD_DIR}/build-plugin.sh ${TARGET} ${PLUGINS} + - bash ${TRAVIS_BUILD_DIR}/build.sh ${TARGET} ${PLUGINS} #notifications: #email: true diff --git a/build-plugin.sh b/build.sh similarity index 95% rename from build-plugin.sh rename to build.sh index a86c8af..1463ccf 100755 --- a/build-plugin.sh +++ b/build.sh @@ -8,13 +8,14 @@ PAWPAW_ROOT="${PWD}" # --------------------------------------------------------------------------------------------------------------------- target="${1}" -plugin="${2}" -if [ -z "${target}" ] || [ -z "${plugin}" ]; then +if [ -z "${target}" ]; then echo "usage: ${0} " exit 1 fi +shift + # TODO check that bootstrap.sh has been run # --------------------------------------------------------------------------------------------------------------------- @@ -26,9 +27,7 @@ source setup/versions.sh # --------------------------------------------------------------------------------------------------------------------- -# TODO: make loop - -if true; then +for plugin in ${@}; do pfile="${PAWPAW_ROOT}/plugins/${plugin}.json" if [ ! -e "${pfile}" ]; then @@ -70,6 +69,6 @@ if true; then build_waf "${name}" "${version}" "${buildargs}" ;; esac -fi +done # ---------------------------------------------------------------------------------------------------------------------