diff --git a/services/backup/scripts/build.sh b/services/backup/scripts/build.sh deleted file mode 100755 --- a/services/backup/scripts/build.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -set -e - -NPROC=0 - -NPROC=$(nproc 2> /dev/null || echo 1) -if [[ $NPROC -eq 1 ]]; then - NPROC=$(sysctl -n hw.physicalcpu 2> /dev/null || echo 1) -fi - -echo "building the server (nproc=$NPROC)..." - -pushd cmake/build -cmake ../.. -make -j $NPROC - -popd - -echo "success - server built" diff --git a/services/backup/scripts/build_server.sh b/services/backup/scripts/build_server.sh deleted file mode 100755 --- a/services/backup/scripts/build_server.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -set -e - -# folly hack - https://github.com/facebook/folly/pull/1231 -sed -i 's/#if __has_include()/#if __has_include()/g' /usr/lib/folly/folly/detail/Demangle.h - -rm -rf lib -mkdir lib -pushd lib -ln -s /usr/lib/folly -ln -s /usr/lib/glog -ln -s /usr/lib/double-conversion -popd # lib - -rm -rf _generated -mkdir _generated - -rm -rf cmake/build -mkdir -p cmake/build - -scripts/generate.sh -scripts/build.sh diff --git a/services/backup/scripts/generate.sh b/services/backup/scripts/generate.sh deleted file mode 100755 --- a/services/backup/scripts/generate.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -set -e - -echo "generating files from protos..." - -protoc -I=./protos --cpp_out=_generated --grpc_out=_generated --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` ./protos/backup.proto -protoc -I=./protos --cpp_out=_generated --grpc_out=_generated --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` ./protos/blob.proto - -echo "success - code generated from protos" diff --git a/services/backup/scripts/run_server.sh b/services/backup/scripts/run_server.sh deleted file mode 100755 --- a/services/backup/scripts/run_server.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -set -e - -cmake/build/bin/backup diff --git a/services/backup/scripts/run_tests.sh b/services/backup/scripts/run_tests.sh deleted file mode 100755 --- a/services/backup/scripts/run_tests.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -set -e - -pushd cmake/build -make test ARGS="-V" -popd # cmake/build