WIP build-obs.sh

This commit is contained in:
Christian Hagenest
2024-04-30 18:48:49 +02:00
committed by missytake
parent 468bb04149
commit 013def94f9

View File

@@ -0,0 +1,28 @@
#!/bin/bash
# Download Debian Source Files
echo "Downloading precise files from Debian unstable repository..."
mkdir dovecot-build
cd dovecot-build
wget https://packages.debian.org/unstable/dovecot-core # TODO: probably wrong link check this
# Clone the Chatmail Dovecot Repo
echo "Cloning the Chatmail Dovecot fork..."
git clone https://github.com/chatmail/dovecot.git
# Build the Package
echo "Building the package..."
cd dovecot
debuild -us -uc
# Copy Files to Your Local OBS Repository, TODO how to do this best?
echo "Copying files to your local OBS repository..."
cp /path/to/downloaded/files/*.tar.gz /path/to/your/local/obs/repo/
cp /path/to/downloaded/files/*.dsc /path/to/your/local/obs/repo/
cp /path/to/downloaded/files/*.xz /path/to/your/local/obs/repo/
# Push Changes to OBS
echo "Pushing changes to OBS..."
cd /path/to/your/local/obs/repo/
osc add *
osc commit