X-Git-Url: http://git.projectaon.org/?a=blobdiff_plain;f=common%2Fscripts%2Fcopy-svg.sh;h=532af7cac6f4a23c6ed292ef1646976253e86c10;hb=4a7dbd306e2b7c63c6dd7e079233ffd137a6358a;hp=a057dc4ed81134b01cafed53d05342925fbc7cd3;hpb=7d3e9ca54e0cb51922b34659b920e61ee3a6e8d2;p=project-aon.git diff --git a/common/scripts/copy-svg.sh b/common/scripts/copy-svg.sh index a057dc4..532af7c 100755 --- a/common/scripts/copy-svg.sh +++ b/common/scripts/copy-svg.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]} source_dir="$AONDIR/$lang/svg/$series" output_dir="$CURR_DIR/$lang/svg/$series"