File: dist.sh

package info (click to toggle)
dbus-python 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,708 kB
  • sloc: ansic: 9,653; python: 4,664; makefile: 597; sh: 428
file content (34 lines) | stat: -rwxr-xr-x 1,123 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
# Copyright 2006-2025 Collabora Ltd.
# SPDX-License-Identifier: MIT

set -eux

distdir="${MESON_PROJECT_DIST_ROOT}"

MKDIR_P="${MKDIR_P-mkdir -p}"
SED="${SED-sed}"

VERSION="$1"
PYTHON="$2"

umask 022

echo "${VERSION}" > "${distdir}/.version"
${MKDIR_P} "${distdir}/dbus_python.egg-info"
touch "${distdir}/MANIFEST"
touch "${distdir}/MANIFEST.in"
touch "${distdir}/dbus_python.egg-info/SOURCES.txt"
${PYTHON} "${distdir}/tools/generate-pkginfo.py" "${VERSION}" "${distdir}/PKG-INFO"
echo > "${distdir}/dbus_python.egg-info/dependency_links.txt"
echo _dbus_bindings > "${distdir}/dbus_python.egg-info/top_level.txt"
echo _dbus_glib_bindings >> "${distdir}/dbus_python.egg-info/top_level.txt"
echo dbus >> "${distdir}/dbus_python.egg-info/top_level.txt"
cp "${distdir}/PKG-INFO" "${distdir}/dbus_python.egg-info/PKG-INFO"

( cd "${distdir}" && find . -type d -o -print ) | \
        LC_ALL=C sort | \
        ${SED} -e 's|^\./||' \
        > "${distdir}/MANIFEST"
${SED} -e 's/.*/include &/' < "${distdir}/MANIFEST" > "${distdir}/MANIFEST.in"
cp "${distdir}/MANIFEST" "${distdir}/dbus_python.egg-info/SOURCES.txt"