summaryrefslogtreecommitdiffhomepage
path: root/dist
diff options
context:
space:
mode:
authorLucía Andrea Illanes Albornoz <lucia@luciaillanes.de>2023-03-31 07:49:57 +0200
committerLucía Andrea Illanes Albornoz <lucia@luciaillanes.de>2023-03-31 07:49:57 +0200
commit80a5c9bcdb0199c8b0e608695fd04faa464cf6a9 (patch)
treeab7f2e1abbd8546bc47163e9bfc823d0f5454ca3 /dist
parent196f004d57a260e3fbd27e614b079337c141b813 (diff)
downloadmidipix_build-80a5c9bcdb0199c8b0e608695fd04faa464cf6a9.tar.bz2
midipix_build-80a5c9bcdb0199c8b0e608695fd04faa464cf6a9.tar.xz
Make dist/*.dist regular vars files beneath vars.dist/.
Diffstat (limited to 'dist')
-rw-r--r--dist/dist_gitref.dist20
-rw-r--r--dist/dist_minipix.dist103
-rw-r--r--dist/dist_zipdist.dist72
3 files changed, 0 insertions, 195 deletions
diff --git a/dist/dist_gitref.dist b/dist/dist_gitref.dist
deleted file mode 100644
index e1f2152c..00000000
--- a/dist/dist_gitref.dist
+++ /dev/null
@@ -1,20 +0,0 @@
-#
-# Copyright (c) 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Lucía Andrea Illanes Albornoz <lucia@luciaillanes.de>
-# set +o errexit -o noglob -o nounset is assumed.
-#
-
-pkg_dist_gitref_all() {
- local _pdga_group_name="${1}" _pdga_pkg_name="${2}" _pdga_restart_at="${3}";
-
- (rtl_fileop cd "${MIDIPIX_BUILD_PWD}" &&\
- git rev-parse HEAD > "${PREFIX}/build.gitref");
- if [ "${?}" -eq 0 ]; then
- ex_pkg_dispatch_send "step" "${_pdga_group_name}" "${_pdga_pkg_name}" "finish";
- ex_pkg_state_set "${_pdga_pkg_name}" "finish";
- return 0;
- else
- return 1;
- fi;
-};
-
-# vim:filetype=sh textwidth=0
diff --git a/dist/dist_minipix.dist b/dist/dist_minipix.dist
deleted file mode 100644
index 8d9d330a..00000000
--- a/dist/dist_minipix.dist
+++ /dev/null
@@ -1,103 +0,0 @@
-#
-# Copyright (c) 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Lucía Andrea Illanes Albornoz <lucia@luciaillanes.de>
-# set +o errexit -o noglob -o nounset is assumed.
-#
-
-: ${PKG_DIST_MINIPIX_INSTALL_FILES_V2:=" \
- /=%[_minipix]/bin \
- /=%[_minipix]/etc \
- /=%[_minipix]/etc/ssl/certs \
- /=%[_minipix]/lib \
- /=%[_minipix]/share \
- /=%[_minipix]/share/terminfo \
- \
- +%[_native]/bin/clear=%[_minipix]/bin/clear \
- +%[_native]/bin/reset=%[_minipix]/bin/reset \
- +%[_native]/bin/tset=%[_minipix]/bin/tset \
- +%[_minipix_dist]/bin/%<*>=%[_minipix]/bin/%[FNAME] \
- \
- +%[_native]/lib/libassuan.so.0=%[_minipix]/bin/libassuan.so.0 \
- +%[_native]/lib/libbz2.so.1=%[_minipix]/bin/libbz2.so.1 \
- +%[_native]/lib/libcrypto.so.50=%[_minipix]/bin/libcrypto.so.50 \
- +%[_native]/lib/libc.so=%[_minipix]/bin/libc.so \
- +%[_native]/lib/libcurl.so.4=%[_minipix]/bin/libcurl.so.4 \
- +%[_native]/lib/libexpat.so.1=%[_minipix]/bin/libexpat.so.1 \
- +%[_native]/lib/libgmp.so.10=%[_minipix]/bin/libgmp.so.10 \
- +%[_native]/lib/libgnutls.so.30=%[_minipix]/bin/libgnutls.so.30 \
- +%[_native]/lib/libgpgme.so.11=%[_minipix]/bin/libgpgme.so.11 \
- +%[_native]/lib/libgpg-error.so.0=%[_minipix]/bin/libgpg-error.so.0 \
- +%[_native]/lib/libhogweed.so.6=%[_minipix]/bin/libhogweed.so.6 \
- +%[_native]/lib/libiconv.so.2=%[_minipix]/bin/libiconv.so.2 \
- +%[_native]/lib/libidn2.so.0=%[_minipix]/bin/libidn2.so.0 \
- +%[_native]/lib/liblzma.so.5=%[_minipix]/bin/liblzma.so.5 \
- +%[_native]/lib/libmagic.so.1=%[_minipix]/bin/libmagic.so.1 \
- +%[_native]/lib/libmetalink.so.3=%[_minipix]/bin/libmetalink.so.3 \
- +%[_native]/lib/libmpfr.so.4=%[_minipix]/bin/libmpfr.so.4 \
- +%[_native]/lib/libncurses.so.6=%[_minipix]/bin/libncurses.so.6 \
- +%[_native]/lib/libncursesw.so.6=%[_minipix]/bin/libncursesw.so.6 \
- +%[_native]/lib/libnettle.so.8=%[_minipix]/bin/libnettle.so.8 \
- +%[_native]/lib/libpcre2-8.so.0=%[_minipix]/bin/libpcre2-8.so.0 \
- +%[_native]/lib/libpcre.so.1=%[_minipix]/bin/libpcre.so.1 \
- +%[_native]/lib/libperk.so.0=%[_minipix]/bin/libperk.so.0 \
- +%[_native]/lib/libpsl.so.5=%[_minipix]/bin/libpsl.so.5 \
- +%[_native]/lib/libpsxscl.so=%[_minipix]/bin/libpsxscl.so \
- +%[_native]/lib/libpython2.7.so.1=%[_minipix]/bin/libpython2.7.so.1 \
- +%[_native]/lib/libreadline.so.8=%[_minipix]/bin/libreadline.so.8 \
- +%[_native]/lib/libssl.so.53=%[_minipix]/bin/libssl.so.53 \
- +%[_native]/lib/libtasn1.so.6=%[_minipix]/bin/libtasn1.so.6 \
- +%[_native]/lib/libtinfo.so.6=%[_minipix]/bin/libtinfo.so.6 \
- +%[_native]/lib/libtinfow.so.6=%[_minipix]/bin/libtinfow.so.6 \
- +%[_native]/lib/libu16ports.so.0=%[_minipix]/bin/libu16ports.so.0 \
- +%[_native]/lib/libunistring.so.5=%[_minipix]/bin/libunistring.so.5 \
- +%[_native]/lib/libuuid.so.1=%[_minipix]/bin/libuuid.so.1 \
- +%[_native]/lib/libz.so.1=%[_minipix]/bin/libz.so.1 \
- \
- +%[_minipix_dist]/lib/python2.7/=%[_minipix]/lib/python2.7/ \
- \
- +%[_minipix_dist]/etc/ca-certificates.conf=%[_minipix]/etc/ca-certificates.conf \
- +%[_minipix_dist]/etc/ssl/certs/ca-certificates.crt=%[_minipix]/etc/ssl/certs/ca-certificates.crt \
- +%[_minipix_dist]/share/ca-certificates/=%[_minipix]/share/ca-certificates/ \
- \
- +%[_minipix_dist]/share/nano/=%[_minipix]/share/nano/ \
- @nano/nanorc.nanorc=%[_minipix]/share/nanorc \
- +%[_minipix_dist]/share/vim/=%[_minipix]/share/vim/ \
- @vim/vim74/vimrc_example.vim=%[_minipix]/share/vimrc \
- \
- /=%[_minipix]/share/terminfo \
- /=%[_minipix]/share/terminfo/p \
- +%[_native]/share/terminfo/p/putty=%[_minipix]/share/terminfo/p/putty \
- +%[_native]/share/terminfo/p/putty-256color=%[_minipix]/share/terminfo/p/putty-256color \
- /=%[_minipix]/share/terminfo/s \
- +%[_native]/share/terminfo/s/screen=%[_minipix]/share/terminfo/s/screen \
- +%[_native]/share/terminfo/s/screen-256color=%[_minipix]/share/terminfo/s/screen-256color \
- /=%[_minipix]/share/terminfo/x \
- +%[_native]/share/terminfo/x/xterm=%[_minipix]/share/terminfo/x/xterm \
- +%[_native]/share/terminfo/x/xterm-256color=%[_minipix]/share/terminfo/x/xterm-256color \
-"};
-
-pkg_dist_minipix_all() {
- local _pdma_group_name="${1}" _pdma_pkg_name="${2}" _pdma_restart_at="${3}" \
- _pdma_status="" _pdma_vflag="";
-
- if rtl_lmatch \$ARG_VERBOSE_TAGS "install" ","; then
- _pdma_vflag="-v";
- fi;
-
- if rtl_lmatch \$ARG_DIST "minipix" "," \
- && ! rtl_install_v2 \
- \$_pdma_status \
- -p "_minipix=${PREFIX_MINIPIX##*/}" \
- -p "_minipix_dist=${PREFIX}/minipix_dist" \
- -p "_native=${PREFIX_NATIVE##*/}" \
- ${_pdma_vflag} -- "${PREFIX}" \
- "${PKG_INSTALL_FILES_V2}"; then
- return 1;
- fi;
-
- ex_pkg_dispatch_send "step" "${_pdma_group_name}" "${_pdma_pkg_name}" "finish";
- ex_pkg_state_set "${_pdma_pkg_name}" "finish";
-
- return 0;
-};
-
-# vim:filetype=sh textwidth=0
diff --git a/dist/dist_zipdist.dist b/dist/dist_zipdist.dist
deleted file mode 100644
index 51e8dad0..00000000
--- a/dist/dist_zipdist.dist
+++ /dev/null
@@ -1,72 +0,0 @@
-#
-# Copyright (c) 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Lucía Andrea Illanes Albornoz <lucia@luciaillanes.de>
-# set +o errexit -o noglob -o nounset is assumed.
-#
-
-pkg_dist_zipdist_all() {
- local _pdza_group_name="${1}" _pdza_pkg_name="${2}" _pdza_restart_at="${3}" \
- _pdza_dist_fname="" _pdza_pkg_name="" _pdza_pkglist_fname="${PREFIX}/pkglist.native";
-
- if ! rtl_lmatch \$ARG_DIST "zipdist" ","; then
- return 0;
- fi;
-
- ex_pkg_dispatch_send "msg_pkg" "dist" "dist_zipdist" "${MSG_zipdist_begin}";
- rtl_log_msgV "zipdist" "${MSG_zipdist_begin}";
-
- for _pdza_pkg_name in $(cat "${_pdza_pkglist_fname}"); do
- if [ ! -e "${BUILD_WORKDIR}/${_pdza_pkg_name}-native-${DEFAULT_TARGET}" ]; then
- rtl_log_msgV "fatalexit" "${MSG_zipdist_missing_pkg_build_dir}" "${_pdza_pkg_name}";
- fi;
- done;
-
- _pdza_dist_fname="${DEFAULT_ZIPDIST_FNAME_PREFIX}${BUILD_USER}@${BUILD_HNAME}-${BUILD_DATE_START}.zip";
-
- if [ -e "${BUILD_WORKDIR}/zipdist" ]\
- && ! rtl_fileop rm "${BUILD_WORKDIR}/zipdist"; then
- return 1;
- elif ! rtl_fileop mkdir "${BUILD_WORKDIR}/zipdist"; then
- return 1;
- elif ! "${BUILD_WORKDIR}/mpackage/mpackage.sh" \
- --defroot="${DEFAULT_ZIPDIST_DEFROOT}" \
- --flysyms \
- --minroot="${PREFIX_MINIPIX}" \
- --objroot="${BUILD_WORKDIR}" \
- --pkgroot="${BUILD_WORKDIR}/zipdist/pkgroot" \
- --product=Midipix \
- --subset="${_pdza_pkglist_fname}" \
- --symbols \
- --sysroot="${BUILD_WORKDIR}/zipdist/sysroot" \
- --target="${DEFAULT_TARGET}" \
- --tmproot="${BUILD_WORKDIR}/zipdist/tmproot" \
- --zipfile="${PREFIX}/${_pdza_dist_fname}"; then
- return 1;
- fi;
-
- ex_pkg_dispatch_send "msg_pkg" "dist" "dist_zipdist" "${MSG_zipdist_finished}";
- rtl_log_msgV "zipdist" "${MSG_zipdist_finished}";
-
- if [ "${DEFAULT_ZIPDIST_SIGN_GPG_KEY:+}" = 1 ]\
- && command which gpg >/dev/null 2>&1\
- && gpg --list-keys "${DEFAULT_ZIPDIST_SIGN_GPG_KEY}" >/dev/null 2>&1;
- then
- ex_pkg_dispatch_send "msg_pkg" "dist" "dist_zipdist" "${MSG_zipdist_signing}";
- rtl_log_msgV "zipdist" "${MSG_zipdist_signing}";
-
- if ! gpg --armor --passphrase-file /dev/null \
- --local-user "${DEFAULT_ZIPDIST_SIGN_GPG_KEY}" \
- --sign "${PREFIX}/${_pdza_dist_fname}"; then
- return 1;
- fi;
-
- ex_pkg_dispatch_send "msg_pkg" "dist" "dist_zipdist" "${MSG_zipdist_signed}";
- rtl_log_msgV "zipdist" "${MSG_zipdist_signed}";
- fi;
-
- ex_pkg_dispatch_send "step" "${_pdza_group_name}" "${_pdza_pkg_name}" "finish";
- ex_pkg_state_set "${_pdza_pkg_name}" "finish";
-
- return 0;
-};
-
-# vim:filetype=sh textwidth=0