From 1f54edfe9947300c1b801427dc20963789baa324 Mon Sep 17 00:00:00 2001 From: Max Schaefer Date: Tue, 26 May 2020 11:09:07 +0100 Subject: [PATCH] Add make target for synchronising data-flow libraries. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 40ae1caf..8003afe4 100644 --- a/Makefile +++ b/Makefile @@ -109,3 +109,10 @@ build/testdb/go.dbscheme: upgrades/initial/go.dbscheme rm -rf build/testdb echo >build/empty.trap codeql dataset import -S upgrades/initial/go.dbscheme build/testdb build/empty.trap + +.PHONY: sync-dataflow-libraries +sync-dataflow-libraries: + for f in DataFlowImpl.qll DataFlowImplCommon.qll tainttracking1/TaintTrackingImpl.qll;\ + do\ + curl -s -o ./ql/src/semmle/go/dataflow/internal/$$f https://raw.githubusercontent.com/github/codeql/master/java/ql/src/semmle/code/java/dataflow/internal/$$f;\ + done