Skip to content

Commit

Permalink
Build scripts delete existing state
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Mar 16, 2018
1 parent b03eab9 commit f3ebfbc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build_napcomp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ CWD=`pwd`

do_build() {
echo "Building NAPCOMP..."
rm -rf $OUTPUT
mkdir -p $OUTPUT
cd $CWD
cd ./app/napcomp
go get
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
}
Expand Down
1 change: 1 addition & 0 deletions build_naprrql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
}

Expand Down
1 change: 1 addition & 0 deletions build_napval.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3ebfbc

Please sign in to comment.