forked from ben-nsng/HelloSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·25 lines (24 loc) · 787 Bytes
/
run.sh
File metadata and controls
executable file
·25 lines (24 loc) · 787 Bytes
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
if [ "$1" == "compile" ]
then
cd bin && javac -cp ../executable/jsoup-1.8.1.jar:../executable/jdbm-1.0.jar:. ../IRUtilities/*.java ../project/*.java ../org/json/*.java -d ./
jar -cvfm ../executable/app.jar manifest/crawler_manifest.txt IRUtilities/*.class project/*.class org/json/*.class
elif [ "$1" == "index" ]
then
rm executable/*.db executable/*.lg
cd executable && java -jar app.jar index
elif [ "$1" == "search" ]
then
cd executable && java -jar app.jar search "$2"
elif [ "$1" == "stem" ]
then
cd executable && java -jar app.jar stem "$2"
elif [ "$1" == "suggest" ]
then
cd executable && java -jar app.jar suggest "$2"
elif [ "$1" == "links" ]
then
cd executable && java -jar app.jar links "$2"
fi
cd ..
chmod 777 executable/*.db
chmod 777 executable/*.lg