Files
documentdb/packaging/packaging-entrypoint.sh
T
Gledis Zeneli 6d239e3edc Add [Deb, Ubuntu] x [PG 15, PG 16] Packaging (#58)
Add automated script for extension packaging.
The script enables packaging and testing for all combinations of
`[Debian 12, Debian 11, Ubuntu 24.04, Ubuntu 22.04, Ubuntu 20.04] x [PG
16, PG 15]`
2024-09-19 18:57:15 +03:00

21 lines
454 B
Bash
Executable File

#!/bin/bash
set -e
# Change to the build directory
cd /build
# Keep the internal directory out of the Debian package
sed -i '/internal/d' Makefile
# Build the Debian package
debuild -us -uc
# Create the output directory if it doesn't exist
mkdir -p /output
# Copy the built packages to the output directory
cp ../*.deb /output/
# Change ownership of the output files to match the host user's UID and GID
chown -R $(stat -c "%u:%g" /output) /output