#!/bin/bash npm install -g oss-attribution-generator solutions=$(ls solutions) workbenchCore=$(ls workbench-core) for d in $solutions; do echo "$d" pushd solutions/$d if [ -f ./package.json ]; then echo "checking attributions in solutions/$d" generate-attribution mv oss-attribution/attribution.txt NOTICE rm -rf oss-attribution fi popd done for d in $workbenchCore; do echo "$d" pushd workbench-core/$d if [ -f ./package.json ]; then echo "checking attributions in workbench-core/$d" generate-attribution mv oss-attribution/attribution.txt NOTICE rm -rf oss-attribution fi popd done pushd workbench-core/repo-scripts/repo-toolbox if [ -f ./package.json ]; then echo "checking attributions in workbench-core/repo-script/repo-toolbox" generate-attribution mv oss-attribution/attribution.txt NOTICE rm -rf oss-attribution fi popd pushd workbench-core/example/express if [ -f ./package.json ]; then echo "checking attributions in workbench-core/example/express" generate-attribution mv oss-attribution/attribution.txt NOTICE rm -rf oss-attribution fi popd pushd workbench-core/example/infrastructure if [ -f ./package.json ]; then echo "checking attributions in workbench-core/example/infrastructure" generate-attribution mv oss-attribution/attribution.txt NOTICE rm -rf oss-attribution fi popd pushd solutions/swb-ui/infrastructure if [ -f ./package.json ]; then echo "checking attributions in solutions/swb-ui/infrastructure" generate-attribution mv oss-attribution/attribution.txt NOTICE rm -rf oss-attribution fi popd