summaryrefslogtreecommitdiffstats
path: root/src/3/ppt-mkpkgs
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-07-15 17:55:38 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-07-15 17:55:38 (EDT)
commitfbde88227aeafaba237e9358e5aa5805baaec5f7 (patch)
tree1fa3650205fb6f1c751bbfd04a267543f75cb826 /src/3/ppt-mkpkgs
parent987bfa4392a9e8b988d0a7d21a9a309d6e606c45 (diff)
src/3/*: Support unversioned build-time packages
Diffstat (limited to 'src/3/ppt-mkpkgs')
-rw-r--r--src/3/ppt-mkpkgs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/3/ppt-mkpkgs b/src/3/ppt-mkpkgs
index 4bd49b1..9594aea 100644
--- a/src/3/ppt-mkpkgs
+++ b/src/3/ppt-mkpkgs
@@ -43,12 +43,14 @@ make_base_pkg()
make_build_time_pkgs()
{
+ local pkg_ver=
local pkg=
# Make each config-*-* package.
- for pkg in src/build/*; do
- [ -d "${pkg}" ] || continue
- pkg="${pkg#src/build/}"
+ for pkg_ver in src/build/*; do
+ [ -d "${pkg_ver}" ] || continue
+ pkg_ver="${pkg_ver#src/build/}"
+ pkg="${pkg_ver%_*}"
mkdir -p "config-${pkg}-${PLAT}.pkg"
cat >"config-${pkg}-${PLAT}.pkg/control" <<-EOF
Architecture: all