summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-08-01 08:40:57 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-08-01 08:40:57 (EDT)
commite09df586ce9f9bab4c66779fd189017c8c3341c0 (patch)
tree676ee01ba78331ba7981466cafe5dcb3747dc65d /src
parentc743a29f6791d1f3c5f71e106b06d52ef3cb6b8b (diff)
Write oh_control_gen_*() and fix tr commands.
Diffstat (limited to 'src')
-rw-r--r--src/opkbuild.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh
index 3347b7f..0535095 100644
--- a/src/opkbuild.sh
+++ b/src/opkbuild.sh
@@ -265,8 +265,8 @@ setup_source_control()
oh_control_parse_source
for field in ${OH_CONTROL_SOURCE_FIELDS_REQUIRED} \
${OH_CONTROL_SOURCE_FIELDS_OPTIONAL}; do
- param="OH_CONTROL_SOURCE_FIELD_$(LC_CTYPE=C \
- tr '[:lower:]-' '[:upper:]_')"
+ param="OH_CONTROL_SOURCE_FIELD_$(echo "${field}" | \
+ LC_CTYPE=C tr '[:lower:]-' '[:upper:]_')"
oh_pv_set 'src:.control' "${field}" "$(eval echo \$\{"${param}"\})"
done
}
@@ -405,8 +405,8 @@ step_bincontrol()
oh_control_parse_binary "${pkg}"
for field in ${OH_CONTROL_BINARY_FIELDS_REQUIRED} \
${OH_CONTROL_BINARY_FIELDS_OPTIONAL}; do
- param="OH_CONTROL_BINARY_FIELD_$(LC_CTYPE=C \
- tr '[:lower:]-' '[:upper:]_')"
+ param="OH_CONTROL_BINARY_FIELD_$(echo "${field}" | \
+ LC_CTYPE=C tr '[:lower:]-' '[:upper:]_')"
oh_pv_set "${pkg}.control" \
"${field}" "$(eval echo \$\{"${param}"\})"
done