File: 01_fix_version_option.patch

package info (click to toggle)
svn-all-fast-export 1.0.10%2Bgit20160822-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 364 kB
  • ctags: 348
  • sloc: cpp: 2,791; sh: 17; makefile: 8
file content (18 lines) | stat: -rw-r--r-- 735 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Changes to get the '--version' option working properly, see
 usptream commit:
 508a67a69eafd07a2e1ce9020983e7113b91d919 "Fix the --version option"
 With this patch we get the hash of the latest commit according to upstream
 ChangeLog.
Forwarded: no
Author: José Manuel Santamaría Lema <panfaust@gmail.com>
--- a/src/src.pro
+++ b/src/src.pro
@@ -6,7 +6,7 @@
 APR_INCLUDE = /usr/include/apr-1.0 /usr/include/apr-1 /usr/local/include/apr-1
 exists(local-config.pri):include(local-config.pri)
 
-VERSION = $$system(git --no-pager show --pretty=oneline --no-notes | head -1 | cut -b-40)
+VERSION = $$system(cat ../ChangeLog | head -1 | cut -f 2 --delimiter=\' \')
     !isEmpty(VERSION){
       VERSION = $${VERSION}
     }