Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» add changelog scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ad2ien committed Feb 27, 2024
1 parent 0d9014e commit 78a2148
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions debian-scripts/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM ubuntu:24.04

ENV EDITOR=vim
RUN apt-get update && apt-get install -y devscripts vim
28 changes: 28 additions & 0 deletions debian-scripts/changelog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
set -e

# Needed help to get changelog format right

build_docker_image() {
echo "build docker image..."
docker build -t ubuntu-devscripts:latest .
}

create_changelog() {
EMAIL=
echo "create changelog..."
docker run --rm -it -v $(pwd):/build -w /build \
-e EMAIL=$EMAIL \
ubuntu-devscripts:latest dch --create --package capslock-auto-switch --newversion 0.1.0-1 --distribution unstable "Initial release"
}

update_changelog() {
NEW_VERSION=
EMAIL=
echo "update changelog..."
mv changelog ./debian/
docker run --rm -it -v $(pwd):/build -w /build \
-e EMAIL=$EMAIL \
ubuntu-devscripts:latest dch --newversion $NEW_VERSION
mv ./debian/changelog ./
}

0 comments on commit 78a2148

Please sign in to comment.