-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ./ | ||
} |