summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-02-08 18:34:43 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-02-09 10:24:35 +0100
commit2919fd1ef99eba4fd342f278d391333cc7c0a2fb (patch)
treeac61724be37ec93ac056c403ab67f6935abded78 /scripts
parenta8a54302e5ca9c9ab4e2f4cf199941e0235d36f7 (diff)
downloadOSELAS.Toolchain-2919fd1ef99eba4fd342f278d391333cc7c0a2fb.tar.gz
OSELAS.Toolchain-2919fd1ef99eba4fd342f278d391333cc7c0a2fb.tar.xz
expand debian package version
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/ptxd_make_debian_version_ext.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_debian_version_ext.sh b/scripts/lib/ptxd_make_debian_version_ext.sh
new file mode 100644
index 0000000..28c1ba3
--- /dev/null
+++ b/scripts/lib/ptxd_make_debian_version_ext.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+#
+# Copyright (C) 2018 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+ptxd_make_debian_version_ext() {
+ local num="$(. /etc/os-release; echo ${VERSION_ID})"
+ local version="-0ptx1"
+
+ if [ -n "${num}" ]; then
+ version="${version}~bpo${num}+1"
+ fi
+ echo "${version}"
+}
+export -f ptxd_make_debian_version_ext