summaryrefslogtreecommitdiffhomepage
path: root/subr
diff options
context:
space:
mode:
Diffstat (limited to 'subr')
-rw-r--r--subr/build.subr6
1 files changed, 5 insertions, 1 deletions
diff --git a/subr/build.subr b/subr/build.subr
index 6078cc40..7851afe0 100644
--- a/subr/build.subr
+++ b/subr/build.subr
@@ -118,7 +118,11 @@ init_build_vars() {
};
source_scripts() {
- set -- ${BUILD_PACKAGE_LC%.*} ${BUILD_PACKAGE_LC#*.};
+ _ss_pkg_name="${BUILD_PACKAGE_LC%.*}";
+ _ss_arg1="${BUILD_PACKAGE_LC#*.}";
+ _ss_arg1="${_ss_arg1%%.*}";
+ _ss_arg2="${BUILD_PACKAGE_LC##*.}";
+ set -- ${_ss_pkg_name} ${_ss_arg1} ${_ss_arg2};
for SCRIPT_SOURCE in vars/${BUILD_PACKAGE_LC}.vars ${BUILD_SCRIPT_FNAME}; do
if [ -f ${MIDIPIX_BUILD_PWD}/${SCRIPT_SOURCE} ]; then
if [ ${ARG_DRYRUN:-0} -eq 1 ]; then