Allow selective update.

This commit is contained in:
Bastian Kleineidam 2013-02-13 20:00:44 +01:00
parent 93c48fb7e2
commit 6e0ffa0619
2 changed files with 12 additions and 2 deletions

View file

@ -3,7 +3,12 @@ set -e
set -u set -u
d=$(dirname $0) d=$(dirname $0)
for script in creators gocomics drunkduck keenspot smackjeeves arcamax; do if [ $# -ge 1 ]; then
list="$*"
else
list="creators gocomics drunkduck keenspot smackjeeves arcamax comicfury"
fi
for script in $list; do
echo "Executing ${script}.py" echo "Executing ${script}.py"
"${d}/${script}.py" "${d}/${script}.py"
done done

View file

@ -6,7 +6,12 @@ set -u
mincomics=100 mincomics=100
d=$(dirname $0) d=$(dirname $0)
for script in creators gocomics drunkduck keenspot smackjeeves arcamax; do if [ $# -ge 1 ]; then
list="$*"
else
list="creators gocomics drunkduck keenspot smackjeeves arcamax comicfury"
fi
for script in $list; do
target="${d}/../dosagelib/plugins/${script}.py" target="${d}/../dosagelib/plugins/${script}.py"
echo "Upating $target" echo "Upating $target"
"${d}/removeafter.py" "$target" "# DO NOT REMOVE" "${d}/removeafter.py" "$target" "# DO NOT REMOVE"