aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/package/builddeb
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/package/builddeb')
-rwxr-xr-xscripts/package/builddeb13
1 files changed, 12 insertions, 1 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 2c68c8bf6c76..88dbf23b6970 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -217,9 +217,20 @@ else
217fi 217fi
218maintainer="$name <$email>" 218maintainer="$name <$email>"
219 219
220# Try to determine distribution
221if [ -n "$KDEB_CHANGELOG_DIST" ]; then
222 distribution=$KDEB_CHANGELOG_DIST
223elif distribution=$(lsb_release -cs 2>/dev/null) && [ -n "$distribution" ]; then
224 : # nothing to do in this case
225else
226 distribution="unstable"
227 echo >&2 "Using default distribution of 'unstable' in the changelog"
228 echo >&2 "Install lsb-release or set \$KDEB_CHANGELOG_DIST explicitly"
229fi
230
220# Generate a simple changelog template 231# Generate a simple changelog template
221cat <<EOF > debian/changelog 232cat <<EOF > debian/changelog
222linux-upstream ($packageversion) unstable; urgency=low 233linux-upstream ($packageversion) $distribution; urgency=low
223 234
224 * Custom built Linux kernel. 235 * Custom built Linux kernel.
225 236