Browse Source

Put a stamp on plugin validation

tags/v1.0
falkTX 1 year ago
parent
commit
c9a29d58b6
2 changed files with 17 additions and 0 deletions
  1. +12
    -0
      build-plugins.sh
  2. +5
    -0
      setup/functions.sh

+ 12
- 0
build-plugins.sh View File

@@ -117,12 +117,20 @@ for plugin in ${@}; do
;;
esac

# check if plugin needs validation
pkgdir="${PAWPAW_BUILDDIR}/${name}-${version}"
if [ -f "${pkgdir}/.stamp_verified" ]; then
continue
fi

# validate all bundles
validationfail=0
for lv2bundle in ${lv2bundles[@]}; do
echo -n "Validating ${lv2bundle}... "
if [ ! -f "${LV2DIR}/${lv2bundle}/manifest.ttl" ]; then
echo "manifest.ttl file missing"
exitcode=1
validationfail=1
continue
fi

@@ -141,6 +149,10 @@ for plugin in ${@}; do
echo "ok"
done
done

if [ "${validationfail}" -eq 0 ]; then
touch "${pkgdir}/.stamp_verified"
fi
done

exit ${exitcode}


+ 5
- 0
setup/functions.sh View File

@@ -108,10 +108,15 @@ function _prebuild() {
if [ ! -f "${pkgdir}/.stamp_configured" ]; then
rm -f "${pkgdir}/.stamp_built"
rm -f "${pkgdir}/.stamp_installed"
rm -f "${pkgdir}/.stamp_verified"
rm -f "${pkgdir}/CMakeCache.txt"

elif [ ! -f "${pkgdir}/.stamp_built" ]; then
rm -f "${pkgdir}/.stamp_installed"
rm -f "${pkgdir}/.stamp_verified"

elif [ ! -f "${pkgdir}/.stamp_installed" ]; then
rm -f "${pkgdir}/.stamp_verified"

fi
}


Loading…
Cancel
Save