X-Git-Url: http://git.projectaon.org/?p=project-aon.git;a=blobdiff_plain;f=common%2Fscripts%2Fcopy-xhtml.sh;h=49ec516a16c247ade91501e527fe72a580b167d9;hp=0dde264540293401bc79048618174e078267a895;hb=600bebceef75b28a2e0a4723e09df73c179d66a8;hpb=7d3e9ca54e0cb51922b34659b920e61ee3a6e8d2 diff --git a/common/scripts/copy-xhtml.sh b/common/scripts/copy-xhtml.sh index 0dde264..49ec516 100755 --- a/common/scripts/copy-xhtml.sh +++ b/common/scripts/copy-xhtml.sh @@ -20,14 +20,12 @@ if [ "$AONDIR" -ef "$CURR_DIR" ]; then exit 1 fi -book_db="$AONDIR/common/sqlite/bookcodes.db" - for book in $@ do - row=($(sqlite3 -separator ' ' $book_db "select lang, series from bookcodes where book = '$book';")) + row=( $($AONDIR/common/scripts/list-book-info.sh $book) ) - lang=${row[0]} - series=${row[1]} + lang=${row[1]} + series=${row[2]} for format in xhtml xhtml-less-simple do