diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-11-09 21:14:57 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-11-09 21:14:57 (EST) |
commit | a36159cf0b084fcaca6630d0718c706b81d1440b (patch) | |
tree | ff5438825f0ef495abe7836fdb931d124a511174 /src/1/ppt-mkpkgs | |
parent | a73e46e12e881d4a3ef823b01b439b7aea3be4ef (diff) |
Drop version 1 files
Diffstat (limited to 'src/1/ppt-mkpkgs')
-rw-r--r-- | src/1/ppt-mkpkgs | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/src/1/ppt-mkpkgs b/src/1/ppt-mkpkgs deleted file mode 100644 index aa75c0c..0000000 --- a/src/1/ppt-mkpkgs +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/sh - -set -eu - -PLAT= - -main() -{ - PLAT="$(sed '1{s/^config-\([^ ][^ ]*\) (.*$/\1/;};1!q;' changelog)" - - make_common_pkg - make_build_time_pkgs - make_run_time_pkgs -} - -info() -{ - local fmt="${1}" - shift 1 - - printf "ppt-mkpkgs: ${fmt}\n" "${@}" -} - -make_common_pkg() -{ - # 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" - info 'Metadata for package "%s" generated.' "config-${PLAT}-common" -} - -make_build_time_pkgs() -{ - local pkg= - - # Make each config-*-* package. - for pkg in src/build/*; do - [ -d "${pkg}" ] || continue - pkg="${pkg#src/build/}" - 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 - info 'Metadata for package "%s" generated.' \ - "config-${pkg}-${PLAT}" - done -} - -make_run_time_pkgs() -{ - local pkg= - - # Make each config-* package. - for pkg in src/run/*; do - [ -d "${pkg}" ] || continue - 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 - info 'Metadata for package "%s" generated.' \ - "config-${pkg}" - done -} - -main "${@}" |