dosage/scripts/update_plugins.sh

20 lines
437 B
Bash
Raw Normal View History

#!/bin/sh
2014-01-05 15:50:57 +00:00
# Copyright (C) 2012-2014 Bastian Kleineidam
set -e
set -u
mincomics=100
d=$(dirname $0)
2013-02-13 19:00:44 +00:00
if [ $# -ge 1 ]; then
list="$*"
else
2016-04-12 22:52:16 +00:00
list="arcamax comicfury comicgenesis creators gocomics keenspot smackjeeves webcomicfactory"
2013-02-13 19:00:44 +00:00
fi
for script in $list; do
target="${d}/../dosagelib/plugins/${script}.py"
echo "Upating $target"
"${d}/removeafter.py" "$target" "# DO NOT REMOVE"
2013-05-22 20:29:03 +00:00
"${d}/${script}.py" $mincomics "$target"
done