-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·41 lines (31 loc) · 769 Bytes
/
setup.sh
File metadata and controls
executable file
·41 lines (31 loc) · 769 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#! /bin/bash
THIS_DIR=`pwd`
if [ $# -eq 0 ]
then
echo "{}" > $THIS_DIR/lib/Annex/conf/compass.secrets.json
WITH_CONFIG=$THIS_DIR/lib/Annex/conf/compass.secrets.json
else
WITH_CONFIG=$1
fi
cd lib/Annex
./setup.sh $WITH_CONFIG
source ~/.bash_profile
echo $PATH
sleep 2
cd $THIS_DIR/lib/pyner
python setup.py install
cd $THIS_DIR
sudo apt-get install -y subversion libmagickwand-dev tesseract-ocr gfortran libopenblas-dev liblapack-dev
svn checkout http://peepdf.googlecode.com/svn/trunk/ lib/peepdf
python setup.py
cd $THIS_DIR/lib/Annex/lib/Worker/Tasks
ln -s $THIS_DIR/Tasks/* .
ls -la
cd ../Models
ln -s $THIS_DIR/Models/* .
ls -la
cd $THIS_DIR
pip install --upgrade -r requirements.txt
cd lib/Annex
chmod 0400 conf/*
python unveillance_annex.py -firstuse