From b5b87d0b1545313dce0d32f49745f0c205ba266b Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Mon, 26 Apr 2021 13:18:16 -0700 Subject: [PATCH] fixes for personal build scripts - will go away once workflow is streamlined --- src/script_opt/CPP/bare-embedded-build | 19 +++++++++---------- src/script_opt/CPP/full-embedded-build | 19 +++++++++---------- 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/src/script_opt/CPP/bare-embedded-build b/src/script_opt/CPP/bare-embedded-build index ade7b3d9db..5001e9923a 100755 --- a/src/script_opt/CPP/bare-embedded-build +++ b/src/script_opt/CPP/bare-embedded-build @@ -1,13 +1,12 @@ #! /bin/sh -base=../../.. -so=$base/src/script_opt/CPP -build=$base/build +build=../../../build -echo > $so/CPP-gen-addl.h -export -n ZEEK_USE_CPP ZEEK_ADD_CPP -export ZEEK_HASH_DIR=$build -cd $build -echo | src/zeek -b -O gen-C++ -mv ./CPP-gen-addl.h $so/CPP-gen.cc -ninja || echo Bare embedded build failed +echo > CPP-gen-addl.h +(cd $build + export -n ZEEK_USE_CPP ZEEK_ADD_CPP + export ZEEK_HASH_DIR=. + echo | src/zeek -b -O gen-C++ +) +mv $build/CPP-gen-addl.h CPP-gen.cc +(cd $build ; ninja || echo Bare embedded build failed) diff --git a/src/script_opt/CPP/full-embedded-build b/src/script_opt/CPP/full-embedded-build index 492791c675..b542086bcc 100755 --- a/src/script_opt/CPP/full-embedded-build +++ b/src/script_opt/CPP/full-embedded-build @@ -1,13 +1,12 @@ #! /bin/sh -base=../../.. -so=$base/src/script_opt/CPP -build=$base/build +build=../../../build -echo > $so/CPP-gen-addl.h -export -n ZEEK_USE_CPP ZEEK_ADD_CPP -export ZEEK_HASH_DIR=$build -cd $build -echo | src/zeek -O gen-C++ -mv ./CPP-gen-addl.h $so/CPP-gen.cc -ninja || echo Full embedded build failed +echo > CPP-gen-addl.h +(cd $build + export -n ZEEK_USE_CPP ZEEK_ADD_CPP + export ZEEK_HASH_DIR=. + echo | src/zeek -O gen-C++ +) +mv $build/CPP-gen-addl.h CPP-gen.cc +(cd $build ; ninja || echo Full embedded build failed)