11#! /bin/bash
22#
3- # Copyright (C) 2014-2023 Martin Dvorak <[email protected] >3+ # Copyright (C) 2014-2025 Martin Dvorak <[email protected] >44#
55# Licensed under the Apache License, Version 2.0 (the "License");
66# you may not use this file except in compliance with the License.
3333# ############################################################################
3434
3535function createChangelog() {
36- # Debian tooling changelog hints:
36+ # Debian tooling changelog hints:
3737 # - signature line MUST have one whitespace prefix
38- # - signature line MUST have double space between email and timestamp
38+ # - signature line MUST have double space between email and timestamp
3939 # - traling lines must have exactly one space
4040
4141 export MYTS=` date " +%a, %d %b %Y %H:%M:%S" `
@@ -78,7 +78,7 @@ function buildDebPackage() {
7878 export NOW=` date +%Y-%m-%d--%H-%M-%S`
7979 export HSTRBUILD=hstr-${NOW}
8080 export DEBIANVERSION=unstable
81-
81+
8282 #
8383 # 1) create upstream tarball
8484 #
@@ -91,18 +91,18 @@ function buildDebPackage() {
9191
9292 # 1.x) generate makefiles
9393 cd build/tarball && ./tarball-automake.sh && cd ../.. && ./configure
94-
94+
9595 # 1.2) prune HSTR project source: tests, *.o/... build files, ...
9696 echo -e " \n# HSTR project cleanup ########################################"
9797 rm -vrf ./.git ./hstr ./build ./test ./hstr.pro ./doc ./pad.xml ./snap
9898 find . -type f \( -name " *.a" -or -name " *.o" -or -name " *.*~" -or -name " .gitignore" -or -name " .git" \) | while read F; do rm -vf $F ; done
99-
99+
100100 # 1.4) create tar archive
101101 createTarball
102102
103103 #
104104 # 2) create source deb
105- #
105+ #
106106 # 2.a) add Debian control files
107107 cp -rvf ${HSTRSRC} /build/debian/debian .
108108 createChangelog ./debian/changelog
@@ -113,7 +113,7 @@ function buildDebPackage() {
113113 echo " OK: GPG agent running."
114114 else
115115 gpg-agent --daemon
116- fi
116+ fi
117117
118118119119 DEBFULLNAME=" Martin Dvorak"
@@ -126,7 +126,7 @@ function buildDebPackage() {
126126 pushd .. && mkdir -v deb-binary && cp -vf * .dsc * .changes * .deb deb-binary && popd
127127
128128 # 3) create source deb
129- #
129+ #
130130 # 3.a) build deb
131131 # build SOURCE deb package
132132 # debuild -S
0 commit comments