From b6061bd6e9aec348ca8f85af4c25a7bac2ecb8f9 Mon Sep 17 00:00:00 2001 From: pavanchow Date: Thu, 19 Dec 2019 17:23:31 +0530 Subject: [PATCH] code snippet added --- src/makefile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/makefile b/src/makefile index 401560d5..d0ca1434 100644 --- a/src/makefile +++ b/src/makefile @@ -5,7 +5,7 @@ build-js-dir=${build-dir}/js theme=blue-icon -all: help-dir +all: patch-analytics help-dir help-dir: @@ -21,10 +21,12 @@ clean: (find ${build-dir} -mindepth 1 -maxdepth 1 ! -name js -print0 | xargs -0n1 rm -rf) - - - - - - - +patch-analytics: + git clone https://github.com/virtual-labs/vlabs-analytics.git + cp vlabs-analytics/gtm-patcher.py ../scripts/. + cp vlabs-analytics/patch-analytics.sh ../scripts/. + chmod +x ../scripts/patch-analytics.sh + ../scripts/patch-analytics.sh + rm -rf vlabs-analytics + rm -rf ../scripts/patch-analytics.sh + rm -rf ../scripts/gtm-patcher.py