diff options
Diffstat (limited to 'src/2')
-rw-r--r-- | src/2/ppt-mkpkgs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/2/ppt-mkpkgs b/src/2/ppt-mkpkgs index 27cc483..006bdde 100644 --- a/src/2/ppt-mkpkgs +++ b/src/2/ppt-mkpkgs @@ -52,11 +52,13 @@ make_base_pkg() make_build_time_pkgs() { local pkg= + local var= # Make each config-*-* package. for pkg in src/build/*; do [ -d "${pkg}" ] || continue pkg="${pkg#src/build/}" + var="$(printf '%s' "${pkg}" | tr -C 'A-Za-z0-9-' '-')" mkdir -p "config-${pkg}-${PLAT}.pkg" cat >"config-${pkg}-${PLAT}.pkg/control" <<-EOF # Generated by ppt-mkpkgs. Do not edit. @@ -64,11 +66,11 @@ make_build_time_pkgs() Platform: all Section: dev Depends: config-${PLAT}-common (= \${Binary-Version}), - \${Config-${pkg}-Depends} + \${Config-${var}-Depends} Description: "${PLAT}" platform configuration for ${pkg} EOF if ${MAKE_SUBSTVARS}; then - printf 'Config-%s-Depends:\n' "${pkg}" >>'substvars' + printf 'Config-%s-Depends:\n' "${var}" >>'substvars' fi info 'Metadata for package "%s" generated.' \ "config-${pkg}-${PLAT}" @@ -78,11 +80,13 @@ make_build_time_pkgs() make_run_time_pkgs() { local pkg= + local var= # Make each config-* package. for pkg in src/run/*; do [ -d "${pkg}" ] || continue pkg="${pkg#src/run/}" + var="$(printf '%s' "${pkg}" | tr -C 'A-Za-z0-9-' '-')" mkdir -p "config-${pkg}.pkg" cat >"config-${pkg}.pkg/control" <<-EOF # Generated by ppt-mkpkgs. Do not edit. @@ -90,11 +94,11 @@ make_run_time_pkgs() Platform: ${PLAT} Section: share Depends: config-${PLAT}-common (= \${Binary-Version}), - \${Config-${pkg}-Depends} + \${Config-${var}-Depends} Description: "${PLAT}" platform configuration for ${pkg} EOF if ${MAKE_SUBSTVARS}; then - printf 'Config-%s-Depends:\n' "${pkg}" >>'substvars' + printf 'Config-%s-Depends:\n' "${var}" >>'substvars' fi info 'Metadata for package "%s" generated.' \ "config-${pkg}" |