File: get-debian-version.patch

package info (click to toggle)
nextcloud-spreed-signaling 2.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,620 kB
  • sloc: sh: 447; makefile: 187; python: 78
file content (13 lines) | stat: -rw-r--r-- 606 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/scripts/get-version.sh
+++ b/scripts/get-version.sh
@@ -6,7 +6,9 @@
 if [ -s "$ROOT/../version.txt" ]; then
     VERSION=$(tr -d '[:space:]' < "$ROOT/../version.txt")
 fi
-if [ -z "$VERSION" ] && [ -d "$ROOT/../.git" ]; then
+if [ -f "$ROOT/../debian/changelog" ] && [ -f "$ROOT/../debian/control" ]; then
+    VERSION="$(cd "$ROOT/../" && dpkg-parsechangelog -S Version).debian"
+elif [ -z "$VERSION" ] && [ -d "$ROOT/../.git" ]; then
     TAG=$(git tag --points-at HEAD | sed 's/v//')
     if [ "$1" == "--tar" ]; then
         VERSION=$(git describe --dirty --tags --always | sed 's/debian\///g')