Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/modules/sugar_activities_extra/kspost.60.nochroot.activities.sh
blob: eb226f7e39af1e81e62f979b9454e7d05b8d148b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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
	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