Chameleon

Chameleon Commit Details

Date:2012-01-01 18:08:10 (12 years 3 months ago)
Author:JrCs
Commit:1768
Parents: 1767
Message:Update buildpkg script - Update documentation of addGroupChoices function
Changes:
M/trunk/package/buildpkg.sh

File differences

trunk/package/buildpkg.sh
187187
188188
189189
190
191
192
193
194
190195
191
192
193
194
195
196
196197
197198
198199
......
203204
204205
205206
206
207
207208
208209
209210
......
508509
509510
510511
511
512
512513
513514
514515
# Add a group choice
addGroupChoices() {
# Optionnal arguments:
# --parent=<parent> : parent group choice id
# --exclusive_zero_or_one_choice : only zero or one choice can be selected in the group
# --exclusive_one_choice : only one choice can be selected in the group
#
# $1 Choice Id
# $2 Parent group choice Id (empty if main group)
# $3 Exclusive mode (optional):
# exclusive_zero_or_one_choice
# exclusive_one_choice
# Check the arguments.
local option
local groupChoice=""
local exclusive_function=""
shift; exclusive_function="exclusive_zero_or_one_choice" ;;
--exclusive_one_choice)
shift; exclusive_function="exclusive_one_choice" ;;
--group=*)
--parent=*)
shift; groupChoice=${option#*=} ;;
-*)
echo "Unrecognized addGroupChoices option '$option'" >&2
fi
done < ${OptionalSettingsFiles[$i]}
addGroupChoices --group="Options" $exclusiveFlag "${builtOptionsList}"
addGroupChoices --parent="Options" $exclusiveFlag "${builtOptionsList}"
packagesidentity="${chameleon_package_identity}.options.$builtOptionsList"
# ------------------------------------------------------

Archive Download the corresponding diff file

Revision: 1768