From 3f4aed0333fa50b425ee5044178d17b586fffff0 Mon Sep 17 00:00:00 2001 From: Guillaume Lesniak Date: Fri, 26 Aug 2016 16:38:48 +0200 Subject: [PATCH] scripts: Link resources: Link ANR Module JS files --- scripts/link_modules_resources.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/scripts/link_modules_resources.sh b/scripts/link_modules_resources.sh index ea3d525..f4eefa3 100755 --- a/scripts/link_modules_resources.sh +++ b/scripts/link_modules_resources.sh @@ -38,6 +38,14 @@ if [ -d node_modules/ng_backoffice ]; then cd ../../js/ && find ../../node_modules/ng_backoffice/src -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null cd ../css/ && find ../../node_modules/ng_backoffice/css -name "*" -exec ln -s {} \; 2>/dev/null cd ../img/ && find ../../node_modules/ng_backoffice/img -name "*" -exec ln -s {} \; 2>/dev/null + + if [ -d ../../node_modules/ng_anr ]; then + cd ../js/ + mkdir -p anr + cd anr && find ../../../node_modules/ng_anr/src -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null + cd .. + fi + cd ../.. pushd node_modules/ng_backoffice @@ -50,6 +58,14 @@ if [ -d node_modules/ng_client ]; then cd ../js/ && find ../../node_modules/ng_client/src -name "*" -exec ln -s {} \; 2>/dev/null cd ../css/ && find ../../node_modules/ng_client/css -name "*" -exec ln -s {} \; 2>/dev/null cd ../img/ && find ../../node_modules/ng_client/img -name "*" -exec ln -s {} \; 2>/dev/null + + if [ -d ../../node_modules/ng_anr ]; then + cd ../js/ + mkdir -p anr + cd anr && find ../../../node_modules/ng_anr/src -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null + cd .. + fi + cd ../.. pushd node_modules/ng_client