From f3ebfbca98f90cc8873b7677c9728a0da6aa6c66 Mon Sep 17 00:00:00 2001 From: Nick Nicholas Date: Fri, 16 Mar 2018 12:53:27 +1100 Subject: [PATCH] Build scripts delete existing state --- build_napcomp.sh | 2 ++ build_naprrql.sh | 1 + build_napval.sh | 1 + 3 files changed, 4 insertions(+) diff --git a/build_napcomp.sh b/build_napcomp.sh index 3a4c823..918a7e9 100755 --- a/build_napcomp.sh +++ b/build_napcomp.sh @@ -7,6 +7,7 @@ CWD=`pwd` do_build() { echo "Building NAPCOMP..." + rm -rf $OUTPUT mkdir -p $OUTPUT cd $CWD cd ./app/napcomp @@ -14,6 +15,7 @@ do_build() { GOOS="$GOOS" GOARCH="$GOARCH" go build -ldflags="$LDFLAGS" -o $OUTPUT/$HARNESS cd .. rsync -a napcomp/in $OUTPUT/ + mkdir -p $OUTPUT/in mkdir -p $OUTPUT/in/results rsync -a naprrql/in/master_nap.xml.zip $OUTPUT/in/results } diff --git a/build_naprrql.sh b/build_naprrql.sh index 2e488fe..ec80b6d 100755 --- a/build_naprrql.sh +++ b/build_naprrql.sh @@ -15,6 +15,7 @@ do_build() { cd $CWD cd ./app mkdir -p naprrql/in + rm -rf $OUTPUT/in/*.xml $OUTPUT/in/*.zip $OUTPUT/kvs rsync -a naprrql/gql_schemas naprrql/in naprrql/public naprrql/reporting_templates $OUTPUT/ } diff --git a/build_napval.sh b/build_napval.sh index d9d6c97..d0aab1e 100755 --- a/build_napval.sh +++ b/build_napval.sh @@ -13,6 +13,7 @@ go get github.com/nats-io/nats-streaming-server do_build() { echo "Building NAPVAL..." mkdir -p $OUTPUT + rm -rf $OUTPUT/*.csv cd ../../nats-io/nats-streaming-server GOOS="$GOOS" GOARCH="$GOARCH" go build -ldflags="$LDFLAGS" -o $OUTPUT/$GNATS cd $CWD