|
@@ -25,7 +25,7 @@ stop : stop current episode, saving current location
|
|
listened [ FILE* ] : mark current episode as listened or if FILES mark them
|
|
listened [ FILE* ] : mark current episode as listened or if FILES mark them
|
|
update-feeds : update feeds
|
|
update-feeds : update feeds
|
|
wanted : list wanted episodes
|
|
wanted : list wanted episodes
|
|
-export [ BRNCH ] [ TGT ] : export unlistened podcasts to device
|
|
|
|
|
|
+export : export unlistened podcasts to devices
|
|
EOF
|
|
EOF
|
|
}
|
|
}
|
|
|
|
|
|
@@ -184,9 +184,15 @@ case "$CMD" in
|
|
exit
|
|
exit
|
|
;;
|
|
;;
|
|
export)
|
|
export)
|
|
- BRANCH=${1:-${POD_EXPORT_BRANCH}}
|
|
|
|
- TARGET=${2:-${POD_EXPORT_TARGET}}
|
|
|
|
- git_annex_wrap export "${BRANCH}" -t "${TARGET}"
|
|
|
|
|
|
+ grep -v '^# ' ${POD_BASE_DIR}/${POD_SUB_DIR}/export-devices.csv | \
|
|
|
|
+ while read -r LINE; do
|
|
|
|
+ REMOTE=$(echo "${LINE}" | cut -f 1)
|
|
|
|
+ DIRECTORY=$(echo "${LINE}" | cut -f 2)
|
|
|
|
+ BRANCH=$(echo "${LINE}" | cut -f 3)
|
|
|
|
+ if [ -d "${DIRECTORY}" ] ; then
|
|
|
|
+ git_annex_wrap export "${BRANCH}" --to "${REMOTE}"
|
|
|
|
+ fi
|
|
|
|
+ done
|
|
exit
|
|
exit
|
|
;;
|
|
;;
|
|
*)
|
|
*)
|