File: create-version-from-debian-changelog

package info (click to toggle)
onedrive 2.4.23-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,708 kB
  • sloc: sh: 568; makefile: 143
file content (19 lines) | stat: -rw-r--r-- 548 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
 Makefile.in |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

--- a/Makefile.in
+++ b/Makefile.in
@@ -98,11 +98,7 @@ distclean: clean
 	      $(system_unit_files) $(user_unit_files)
 
 onedrive: $(SOURCES)
-	if [ -f .git/HEAD ] ; then \
-		git describe --tags > version ; \
-	else \
-		echo $(version) > version ; \
-	fi
+	echo v$(shell dpkg-parsechangelog  -S version) > version
 	$(DC) $(DCFLAGS) $(addprefix -L,$(curl_LIBS)) $(addprefix -L,$(sqlite_LIBS)) $(addprefix -L,$(notify_LIBS)) -L-ldl $(SOURCES) -of$@
 
 install: all