Browse Source

Rename build plugin script, support multiple args

Signed-off-by: falkTX <falktx@falktx.com>
tags/v1.0
falkTX 5 years ago
parent
commit
69850de72c
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 6 additions and 7 deletions
  1. +1
    -1
      .travis.yml
  2. +5
    -6
      build.sh

+ 1
- 1
.travis.yml View File

@@ -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


build-plugin.sh → build.sh View File

@@ -8,13 +8,14 @@ PAWPAW_ROOT="${PWD}"
# ---------------------------------------------------------------------------------------------------------------------

target="${1}"
plugin="${2}"

if [ -z "${target}" ] || [ -z "${plugin}" ]; then
if [ -z "${target}" ]; then
echo "usage: ${0} <target> <plugin>"
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

# ---------------------------------------------------------------------------------------------------------------------

Loading…
Cancel
Save