summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-07-15 10:34:36 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-07-15 10:36:10 (EDT)
commitceaf1fad71ef43e9da6ce7442625e1e29ae15985 (patch)
tree356f339bec05cf63630ffb0d98dfa27ad436f754 /config
parent6018dac2e2a9d983de057a0f0be0a776a3a8e11a (diff)
Convert to platconf-pkg-tools framework
Diffstat (limited to 'config')
-rwxr-xr-xconfig62
1 files changed, 0 insertions, 62 deletions
diff --git a/config b/config
deleted file mode 100755
index 2a43cbc..0000000
--- a/config
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/bin/sh
-
-set -e
-set -u
-
-main()
-{
- case "${1-}" in
- '')
- config
- ;;
- 'clean')
- clean
- ;;
- esac
-}
-
-msg()
-{
- printf 'config: '
- printf "${@}"
- printf '\n'
-}
-
-config()
-{
- local plat=
- local pkg=
-
- plat="$(sed '1{s/^config-\([^ ][^ ]*\) (.*$/\1/;};1!q;' changelog)"
-
- # Make "-common" package to provide source package documentation files.
- mkdir -p "config-${plat}-common.pkg"
- cat >"config-${plat}-common.pkg/control" <<-EOF
- Architecture: all
- Platform: all
- Description: "${plat}" platform configuration - common files
- EOF
- >"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/}"
- mkdir -p "config-${pkg}-${plat}.pkg"
- cat >"config-${pkg}-${plat}.pkg/control" <<-EOF
- Architecture: all
- Platform: all
- Depends: config-${plat}-common (= \${Binary-Version})
- Description: "${plat}" platform configuration for ${pkg}
- EOF
- msg 'Metadata for package "%s" generated.' \
- "config-${pkg}-${plat}"
- done
-}
-
-clean()
-{
- rm -Rf config-*-*.pkg/
-}
-
-main "${@}"