spiegel-keyman/linux/scripts/debian.sh
Eberhard Beilharz f3b8ccf07f
chore(linux): Improve version number for debian package
This change switches the package version number for packages that
are intended for the Debian package repo to match the Debian policies.

It also removes the comment from the watch file.
2021-01-14 17:39:49 +01:00

35 lines
870 B
Bash
Executable file

#!/bin/bash
# Build source packages suitable to import into the Debian package repos
# (https://salsa.debian.org/input-method-team)
# must be run from linux dir
# parameters: [PROJECT="<project>"] ./scripts/debian.sh
# PROJECT="<project>" only upload this project
set -e
## START STANDARD BUILD SCRIPT INCLUDE
# adjust relative paths as necessary
THIS_SCRIPT="$(greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null || readlink -f "${BASH_SOURCE[0]}")"
. "$(dirname "$THIS_SCRIPT")/../../resources/build/build-utils.sh"
## END STANDARD BUILD SCRIPT INCLUDE
. $(dirname "$THIS_SCRIPT")/package-build.inc.sh
checkPrerequisites
BASEDIR=$(pwd)
rm -rf debianpackage
mkdir -p debianpackage
for proj in ${projects}; do
downloadSource debianpackage
cd ${proj}-${version}
dch -v ${version}-1 "Re-release to Debian"
debuild -d -S -sa -Zxz
cd ${BASEDIR}
done