summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-28 10:18:12 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-28 10:18:12 (EDT)
commit1875d216059721bcd2c0288b33dc1dabe02fb92a (patch)
tree15f0f8d6967d626b12390c0034dd70c49f24b8f9 /config
parent1d95388a5947b83cb632c92540a5472cde4739aa (diff)
Support run-time platform configuration packages.
Diffstat (limited to 'config')
-rwxr-xr-xconfig20
1 files changed, 16 insertions, 4 deletions
diff --git a/config b/config
index 2a43cbc..f1b0813 100755
--- a/config
+++ b/config
@@ -39,9 +39,9 @@ config()
>"config-${plat}-common.pkg/docs"
msg 'Metadata for package "%s" generated.' "config-${plat}-common"
- # Make each config-*-* package.
- for pkg in src/*; do
- pkg="${pkg#src/}"
+ # Make each config-* package.
+ for pkg in src/build/*; do
+ pkg="${pkg#src/build/}"
mkdir -p "config-${pkg}-${plat}.pkg"
cat >"config-${pkg}-${plat}.pkg/control" <<-EOF
Architecture: all
@@ -52,11 +52,23 @@ config()
msg 'Metadata for package "%s" generated.' \
"config-${pkg}-${plat}"
done
+ for pkg in src/run/*; do
+ pkg="${pkg#src/run/}"
+ mkdir -p "config-${pkg}.pkg"
+ cat >"config-${pkg}.pkg/control" <<-EOF
+ Architecture: all
+ Platform: ${plat}
+ Depends: config-${plat}-common (= \${Binary-Version})
+ Description: "${plat}" platform configuration for ${pkg}
+ EOF
+ msg 'Metadata for package "%s" generated.' \
+ "config-${pkg}"
+ done
}
clean()
{
- rm -Rf config-*-*.pkg/
+ rm -Rf config-*.pkg/
}
main "${@}"