dosage/scripts/update_plugins.sh

21 lines
495 B
Bash
Raw Normal View History

#!/bin/sh
2014-01-05 15:50:57 +00:00
# Copyright (C) 2012-2014 Bastian Kleineidam
2022-06-05 22:52:33 +00:00
# Copyright (C) 2015-2022 Tobias Gruetzmacher
# Copyright (C) 2019-2020 Daniel Ring
set -e
set -u
mincomics=100
d=$(dirname $0)
2013-02-13 19:00:44 +00:00
if [ $# -ge 1 ]; then
2019-06-12 07:42:06 +00:00
list="$*"
2013-02-13 19:00:44 +00:00
else
list="arcamax comicfury comicgenesis comicskingdom creators gocomics keenspot tapas webcomicfactory"
2013-02-13 19:00:44 +00:00
fi
for script in $list; do
2019-06-12 07:42:06 +00:00
target="${d}/../dosagelib/plugins/${script}.py"
echo "Upating $target"
python3 "${d}/${script}.py" $mincomics "$target"
done