This commit is contained in:
Christian Hagenest
2024-05-16 19:36:40 +02:00
committed by missytake
parent acbf370383
commit 8768e6fd0b

View File

@@ -1,7 +1,5 @@
#!/bin/bash
# this script requires curl, osc and debuild installed.
# Install dependencies
echo "Installing dependencies for this script:"
sudo apt install devscripts build-essential osc curl git debhelper-compat
@@ -28,12 +26,13 @@ curl http://deb.debian.org/debian/pool/main/d/dovecot/dovecot_2.3.21+dfsg1.orig-
echo "Cloning the Chatmail Dovecot fork..."
git clone https://github.com/chatmail/dovecot.git
# Build the Package
echo "Building the package..."
# Build the source package
echo "Building the source package"
cd dovecot
dpkg-source -b .
# Setting up OSC
echo "Setting up OBS home repository"
mkdir $OBS_PATH
cd $OBS_PATH
rm -rf home:deltachat/dovecot
@@ -50,11 +49,9 @@ cp -rf dovecot_2.3.21+dfsg1-3.dsc $REPO_PATH
# Push Changes to OBS
echo "Pushing changes to OBS..."
cd $REPO_PATH
osc up
osc add dovecot_2.3.21+dfsg1-3.debian.tar.xz
osc add dovecot_2.3.21+dfsg1.orig.tar.gz
osc add dovecot_2.3.21+dfsg1.orig-pigeonhole.tar.gz
osc add dovecot_2.3.21+dfsg1-3.dsc
osc commit