diff options
-rwxr-xr-x | demo.sh | 3 | ||||
-rwxr-xr-x | get_data.sh | 5 |
2 files changed, 5 insertions, 3 deletions
@@ -20,7 +20,8 @@ | |||
20 | # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE | 20 | # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE |
21 | # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 21 | # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
22 | # | 22 | # |
23 | # | 23 | |
24 | set -o errexit -o pipefail -o noclobber -o nounset | ||
24 | 25 | ||
25 | ROOT="$(pwd)" | 26 | ROOT="$(pwd)" |
26 | SCRIPTS="${ROOT}/scripts" | 27 | SCRIPTS="${ROOT}/scripts" |
diff --git a/get_data.sh b/get_data.sh index 91f790c..c8e9405 100755 --- a/get_data.sh +++ b/get_data.sh | |||
@@ -20,7 +20,8 @@ | |||
20 | # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE | 20 | # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE |
21 | # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 21 | # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
22 | # | 22 | # |
23 | # | 23 | |
24 | set -o errexit -o pipefail -o noclobber -o nounset | ||
24 | 25 | ||
25 | ROOT="$(pwd)" | 26 | ROOT="$(pwd)" |
26 | SCRIPTS="${ROOT}/scripts" | 27 | SCRIPTS="${ROOT}/scripts" |
@@ -58,7 +59,7 @@ done | |||
58 | for PAIR in en,bg en,el en,it, en,ro, en,sl en,sq, bg,el bg,it bg,ro el,it el,ro el,sq it,ro ro,sl ro,sq; do | 59 | for PAIR in en,bg en,el en,it, en,ro, en,sl en,sq, bg,el bg,it bg,ro el,it el,ro el,sq it,ro ro,sl ro,sq; do |
59 | IFS=',' read -r source_lang target_lang <<< "${PAIR}" | 60 | IFS=',' read -r source_lang target_lang <<< "${PAIR}" |
60 | python "${SCRIPTS}/prep_lookup.py" -s "${source_lang}" -t "${target_lang}" | 61 | python "${SCRIPTS}/prep_lookup.py" -s "${source_lang}" -t "${target_lang}" |
61 | python "${SCRIPTS}/tsv_creator.py" "${source_lang}" "${target_lang}" | 62 | python "${SCRIPTS}/tsv_creator.py" "${source_lang}" "${target_lang}" "${source_lang}_to_${target_lang}.def" "${target_lang}_to_${source_lang}.def" |
62 | done | 63 | done |
63 | 64 | ||
64 | READY="${WNET}/ready" | 65 | READY="${WNET}/ready" |