allow out of source configs

This commit is contained in:
Connor Olding 2013-05-26 11:09:39 -07:00
parent 75297e8d4d
commit 95d0b230e2
3 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,3 @@
watch Commie 'Yuyushiki - \d\d' 'Aiura - \d\d'
watch rori 'Hentai Ouji to Warawanai Neko - '
watch FFF 'DATE A LIVE - \d\d(?!v0)'
#watch 'Nimei-Raws' '.'

View File

@ -15,11 +15,11 @@ sanitize() {
}
splittags() {
awk -v tag="$1" -f splittags.awk
awk -v tag="$1" -f "$SRCDIR/splittags.awk"
}
scrape() {
TZ=UTC0 awk -v g="$1" -v timestamp="${2:-0}" -v sep="$SEP" -f scrape.awk
TZ=UTC0 awk -v g="$1" -v timestamp="${2:-0}" -v sep="$SEP" -f "$SRCDIR/scrape.awk"
}
declare -A groupinsane # unsanitized group names

4
run
View File

@ -1,11 +1,13 @@
#!/usr/bin/env bash
SRCDIR="$(readlink -f "$(dirname "$0")" )"
prettify() {
while IFS=$SEP read -r title torrent time; do
echo "$title"$'\n'"dl:"$'\t'"$torrent"$'\n'"at:"$'\t'"$(date -d @"$time")"
done
}
. meow.sh
. "$SRCDIR/meow.sh"
. config.sh
[ -e times.sh ] && { . times.sh; mv times.sh times.sh.old; }
runall | prettify