#!/bin/bash
-# parse ini file
+# parse ini file
CONFIG_FILE="config.ini"
# copied and modified from http://mark.aufflick.com/blog/2007/11/08/parsing-ini-files-with-sed
CL_EXCLUDE=""
for i in "$@"; do
- case $i in
+ case $i in
--include=*)
- CL_INCLUDE=${i#*=}
+ CL_INCLUDE=${i#*=}
;;
--exclude=*)
- CL_EXCLUDE=${i#*=}
+ CL_EXCLUDE=${i#*=}
;;
-h|--help)
usage
# test if localdb already exist:
# yes:
# see if photo-db is newer? yes: merge them; no: do nothing
-# no:
+# no:
# create it
cp $REMOTEDB $LOCALDB
delete from rolls where id not in (select distinct roll_id from photos asc);
drop table rmphotoids;
-drop table jobs;
+drop table jobs;
drop table exports;
vacuum;