-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
55 lines (43 loc) · 1.12 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
# Check the parameters provided
if [ "$#" -ne 1 ]
then
echo "Wrong arguments, usage :"
echo "./build.sh <build or clean>"
exit
fi
BUILD_OR_CLEAN=$1
if [ $BUILD_OR_CLEAN == "build" ]
then
echo "Building"
# Enter your build code here, think about make
# thrift --gen py -r metadataServer.thrift
# thrift --gen py -r blockServer.thrift
# Fill in the build part, see comments below
exit
elif [ $BUILD_OR_CLEAN == "clean" ]
then
echo "Cleaning"
# Do the cleaning part here, think of make clean
# rm -rf gen-py
# Fill in code specific cleanup similar to what you would do in make clean
else
echo "Wrong build command"
echo "Either ./build.sh build or ./build.sh clean"
exit
fi
# This script is used to build your code
# Since many of you will use different programming languages, you can call your
# build file from here
# If you are using an interpreted language like python, just leave as it is
# Eg: for CPP
#
# SRC_DIR = src/
# INC_DIR = inc/
# etc.
# g++ ...
# If you want, you may call a make file from here
# make
# For Java
# Call ant
# Autograder will be calling this script to build your source code