Skip to content

Commit

Permalink
Added script to get USFM3 alignment files from tC uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
jag3773 committed May 24, 2019
1 parent 0181b7e commit 656a15c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions usfm/get_aligned_usfm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
#
# Expects argument of repo path (like https://git.door43.org/shojojohn/bn_irv_1th_book)
# Convert that path to filename for download (like https://git.door43.org/shojojohn/bn_irv_1th_book/raw/branch/master/bn_irv_1th_book.usfm)
# Downloads and properly names file in cwd
#
# Must have get_bible_book.py in ~/bin/ directory

TCBOOKNAME="${1##*/}"
GETURL="$1/raw/branch/master/$TCBOOKNAME.usfm"
CODE=`echo $1 | cut -d '_' -f 3`
USFMBOOK=`python ~/bin/get_bible_book.py $CODE`

wget "$GETURL" -O "$USFMBOOK"

0 comments on commit 656a15c

Please sign in to comment.