Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/modules/custom_packages/kspkglist.70.extras.sh
blob: 921fc1f1b859aab629e69407c85280d3d4ec1110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Copyright (C) 2010 One Laptop Per Child
# Licensed under the terms of the GNU GPL v2 or later; see COPYING for details.

. $OOB__shlib

oIFS=$IFS
IFS=$'\n'
for line in $(env); do
	[[ "${line:0:34}" == "CFG_custom_packages__add_packages_" || "${line}" == "CFG_custom_packages__add_packages" ]] || continue
	pkgs=${line#*=}
	oIFS2=$IFS
	IFS=$'\n\t, '
	for pkg in $pkgs; do
		echo "$pkg"
	done
	IFS=$oIFS2
done

for line in $(env); do
	[[ "${line:0:34}" == "CFG_custom_packages__add_packages_" || "${line}" == "CFG_custom_packages__add_packages" ]] || continue
	pkgs=${line#*=}
	oIFS2=$IFS
	IFS=$'\n\t, '
	for pkg in $pkgs; do
		echo "$pkg"
	done
	IFS=$oIFS2
done