dosage/scripts/update_plugins.sh

20 lines
431 B
Bash
Raw Normal View History

#!/bin/sh
2013-01-23 18:34:11 +00:00
# Copyright (C) 2012-2013 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
list="creators gocomics drunkduck comicgenesis keenspot smackjeeves arcamax comicfury"
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