Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/modules/custom_packages/kspkglist.70.extras.sh
blob: 03be524abef25cb1b10b8119f781db4a9c523f80 (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
# Copyright (C) 2010 One Laptop Per Child
# Licensed under the terms of the GNU GPL v2 or later; see COPYING for details.

. $OOB__shlib

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

while IFS= read -r -d '' line; do
	[[ "${line:0:34}" == "CFG_custom_packages__del_packages_" || "${line:0:34}" == "CFG_custom_packages__del_packages=" ]] || continue
	pkgs=${line#*=}
	oIFS=$IFS
	IFS=$'\n\t, '
	for pkg in $pkgs; do
		echo "-$pkg"
	done
	IFS=$oIFS
done < <(env --null)