dosage/scripts/update_plugins.sh

20 lines
437 B
Bash
Raw Normal View History

#!/bin/sh
2014-01-05 16:50:57 +01:00
# Copyright (C) 2012-2014 Bastian Kleineidam
set -e
set -u
mincomics=100
d=$(dirname $0)
2013-02-13 20:00:44 +01:00
if [ $# -ge 1 ]; then
list="$*"
else
2016-04-13 00:52:16 +02:00
list="arcamax comicfury comicgenesis creators gocomics keenspot smackjeeves webcomicfactory"
2013-02-13 20:00:44 +01: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 22:29:03 +02:00
"${d}/${script}.py" $mincomics "$target"
done