This repository has been archived on 2023-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
defend-together/server/build.sh

17 lines
233 B
Bash
Executable File

#!/bin/sh
mkdir -p builds
# Remove old version
if [ -f builds/server.out ]; then
rm builds/server.out
fi
g++ main.cpp -o builds/server.out -lenet -lpthread
if [ $? = 0 ]
then
echo "Build successfully!"
else
exit -1
fi