source: main/trunk/model-sites-dev/atea/collect/digital-nz/prepare/01-PREP.sh@ 34448

Last change on this file since 34448 was 34448, checked in by davidb, 4 years ago

Useful scripts to get setup with Digital NZ python code and to run it on a language=mi search

  • Property svn:executable set to *
File size: 679 bytes
Line 
1#!/bin/bash
2
3pydnz_source_opt="git"
4#pydnz_source_opt="untar"
5
6echo
7echo "****"
8echo "* pydnz_source_opt set to:"
9echo "* '$pydnz_source_opt'"
10echo "****"
11echo
12
13if [ ! -d pydnz ] ; then
14
15 if [ $pydnz_source_opt = "git" ] ; then
16 git clone https://github.com/fogonwater/pydnz.git
17 else
18 # Assume "untar"
19 echo "Untarring pydnz.tar.gz"
20 tar xvzf pydnz.tar.gz
21 fi
22else
23 if [ $pydnz_source_opt = "git" ] ; then
24 echo "Already git cloned pydnz repository"
25 else
26 # Assume "untar"
27 echo "Already untarred pydnz.tar.gz"
28 fi
29fi
30
31
32if [ ! -d import ] ; then
33 echo "Making directory: 'import'"
34 mkdir import
35else
36 echo "Already created directory: 'import'"
37fi
38
Note: See TracBrowser for help on using the repository browser.