From e09df586ce9f9bab4c66779fd189017c8c3341c0 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 01 Aug 2012 08:40:57 -0400 Subject: Write oh_control_gen_*() and fix tr commands. --- (limited to 'src') 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 -- cgit v0.9.1