79 |
# never fail |
# never fail |
80 |
return 0 |
return 0 |
81 |
} |
} |
82 |
|
|
83 |
|
enum-build-arch-types() |
84 |
|
{ |
85 |
|
echo "${BUILD_ARCH[*]}" |
86 |
|
} |
87 |
|
|
88 |
|
enum-all-arch-types() |
89 |
|
{ |
90 |
|
local arch |
91 |
|
local build_arch_types |
92 |
|
|
93 |
|
for arch in src ${BUILD_ARCH[*]} |
94 |
|
do |
95 |
|
if [ ! -e ${BUILDSERVER_CONFIG_DIR}/profiles/${BUILDROOT_PROFILE}/${arch}/mage.rc ] |
96 |
|
then |
97 |
|
echo "Warning: mage.rc of '${arch}' not found. Arch '${arch}' ignored." >&2 |
98 |
|
else |
99 |
|
build_arch_types+=( "${arch}" ) |
100 |
|
fi |
101 |
|
done |
102 |
|
|
103 |
|
if [[ ${BUILD_PLAYGROUND} -eq 1 ]] |
104 |
|
then |
105 |
|
for arch in ${BUILD_ARCH[*]} |
106 |
|
do |
107 |
|
if [ ! -e ${BUILDSERVER_CONFIG_DIR}/profiles/${BUILDROOT_PROFILE}/playground-${arch}/mage.rc ] |
108 |
|
then |
109 |
|
echo "Warning: mage.rc of 'playground-${arch}' not found. Arch 'playground-${arch}' ignored." >&2 |
110 |
|
else |
111 |
|
build_arch_types+=( "playground-${arch}" ) |
112 |
|
fi |
113 |
|
done |
114 |
|
fi |
115 |
|
|
116 |
|
echo "${build_arch_types[*]}" |
117 |
|
} |