if [ ! -d "$AONDIR" ]; then
>&2 echo "Please set the AONDIR environment variable"
- exit
+ exit 1
fi
BASE_DIR="$AONDIR/common/scripts"
if [ ! -d "$AONDIR" ]; then
>&2 echo "Please set the AONDIR environment variable"
- exit
+ exit 1
fi
CURR_DIR=`pwd`
if [ "$AONDIR" -ef "$CURR_DIR" ]; then
>&2 echo "Current directory is the same as AONDIR: giving up"
- exit
+ exit 1
fi
BASE_DIR="$AONDIR/common/epub"
if [ ! -d "$AONDIR" ]; then
>&2 echo "Please set the AONDIR environment variable"
- exit
+ exit 1
fi
CURR_DIR=`pwd`
if [ "$AONDIR" -ef "$CURR_DIR" ]; then
>&2 echo "Current directory is the same as AONDIR: giving up"
- exit
+ exit 1
fi
book_db="$AONDIR/common/sqlite/bookcodes.db"
if [ ! -d "$AONDIR" ]; then
>&2 echo "Please set the AONDIR environment variable"
- exit
+ exit 1
fi
CURR_DIR=`pwd`
if [ "$AONDIR" -ef "$CURR_DIR" ]; then
>&2 echo "Current directory is the same as AONDIR: giving up"
- exit
+ exit 1
fi
book_db="$AONDIR/common/sqlite/bookcodes.db"
if [ ! -d "$AONDIR" ]; then
>&2 echo "Please set the AONDIR environment variable"
- exit
+ exit 1
fi
book_db="$AONDIR/common/sqlite/bookcodes.db"
if [ ! -d "$AONDIR" ]; then
>&2 echo "Please set the AONDIR environment variable"
- exit
+ exit 1
fi
book_db="$AONDIR/common/sqlite/bookcodes.db"
do
if [[ ! $lang =~ ^[a-z][a-z]$ ]]; then
>&2 echo "invalid language"
- exit
+ exit 1
fi
sqlite3 -column -noheader "$book_db" <<EOF
if [ ! -d "$AONDIR" ]; then
>&2 echo "Please set the AONDIR environment variable"
- exit
+ exit 1
fi
book_db="$AONDIR/common/sqlite/bookcodes.db"
do
if [[ ! $series =~ ^[a-z][a-z]$ ]]; then
>&2 echo "invalid series"
- exit
+ exit 1
fi
sqlite3 -column -noheader "$book_db" <<EOF