blob: ff599ecc0f25b2262bc518b7c105ecd5d8c8dc83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Copyright (C) 2009 One Laptop Per Child
# Licensed under the terms of the GNU GPL v2 or later; see COPYING for details.
. $OOB__shlib
cache=$cachedir/activities
find_option_values urls sugar_activities_extra url
for aurl in "${urls[@]}"; do
echo "Downloading from $aurl ..." >&2
[ -z "${OOB__cacheonly}" ] && \
wget --no-verbose --inet4-only -P $cache -N "$aurl"
install_sugar_bundle $cache/$(basename "$aurl")
done
find_option_values dirs sugar_activities_extra local_dir
for actpath in "${dirs[@]}"; do
[ -n "$actpath" -a -d "$actpath" ] || continue
for i in "$actpath"/*; do
install_sugar_bundle $i
done
done
|