mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
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]`
21 lines
454 B
Bash
Executable File
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
|