mirror of
https://github.com/chatmail/relay.git
synced 2026-05-20 04:48:06 +00:00
WIP build-obs.sh
This commit is contained in:
committed by
missytake
parent
468bb04149
commit
013def94f9
28
scripts/dovecot/build-obs.sh
Normal file
28
scripts/dovecot/build-obs.sh
Normal 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
|
||||||
Reference in New Issue
Block a user