From b469571afe8aaf1f150f17d7cbf2dd920447abbd Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 30 Mar 2015 19:42:11 +0800 Subject: [PATCH] move xilinx_strace_tailor to tools --- tools/xilinx_strace_tailor.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 tools/xilinx_strace_tailor.sh diff --git a/tools/xilinx_strace_tailor.sh b/tools/xilinx_strace_tailor.sh new file mode 100755 index 000000000..57bb74c48 --- /dev/null +++ b/tools/xilinx_strace_tailor.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# Copyright Robert Jordens 2014,2015 + +# assuming your xilinx toolchain lives in /opt/Xilinx, +# run `strace-tailor.sh [synthesis script] [options]` +# then in your current directory, `opt/Xilinx/*` is the +# minimal toolchain required for this synthesis script run. + +PREFIX=\\/opt\\/Xilinx\\/ + +strace -e trace=file,process -f -o strace.log $@ +sed -n "s/^.*\"\\(${PREFIX}[^\"]*\\)\".*$/\\1/p" strace.log \ + | sort | uniq | tr '\n' '\0' \ + | xargs -0 cp --parent --no-dereference --preserve=all -t .