File: no_git_version

package info (click to toggle)
htslib 1.22.1%2Bds2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,304 kB
  • sloc: ansic: 74,360; perl: 2,205; makefile: 948; sh: 408; cpp: 40
file content (30 lines) | stat: -rw-r--r-- 936 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
25
26
27
28
29
30
Author: Michael R. Crusoe <crusoe@debian.org>
Description: Don't check git tags for versioning
Forwarded: not-needed
--- a/version.sh
+++ b/version.sh
@@ -28,15 +28,15 @@ VERSION=1.14
 
 # If we have a git clone, then check against the current tag
 srcdir=${0%/version.sh}
-if [ -e $srcdir/.git ]
-then
-    # If we ever get to 10.x this will need to be more liberal
-    v=`cd $srcdir && git describe --always --match '[0-9].[0-9]*' --dirty`
-    case $v in
-        [0-9]*.[0-9]*) VERSION="$v" ;;
-        [0-9a-f][0-9a-f]*) VERSION="$VERSION-1-g$v" ;;
-    esac
-fi
+#if [ -e $srcdir/.git ]
+#then
+#    # If we ever get to 10.x this will need to be more liberal
+#    v=`cd $srcdir && git describe --always --match '[0-9].[0-9]*' --dirty`
+#    case $v in
+#        [0-9]*.[0-9]*) VERSION="$v" ;;
+#        [0-9a-f][0-9a-f]*) VERSION="$VERSION-1-g$v" ;;
+#    esac
+#fi
 
 # Numeric version is for use in .dylib or .so libraries
 #