File: 001_create-version-from-debian-changelog.patch

package info (click to toggle)
onedrive 2.5.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,984 kB
  • sloc: sh: 634; makefile: 150
file content (24 lines) | stat: -rw-r--r-- 721 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Create version file using dpkg-parsechangelog
Author: Norbert Preining
Forwarded: not-needed
Last-Update: 2019-12-04

---
 Makefile.in |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

--- a/Makefile.in
+++ b/Makefile.in
@@ -96,11 +96,7 @@ distclean: clean
 	rm -f Makefile contrib/pacman/PKGBUILD contrib/spec/onedrive.spec onedrive.1 $(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) -J. $(NOTIF_VERSIONS) $(DCFLAGS) $^ $(addprefix $(LINKER_DCFLAG),$(all_libs)) $(OUTPUT_DCFLAG)$@
 
 install: all