File: GitVersion.sh

package info (click to toggle)
sedutil 1.20.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,744 kB
  • sloc: cpp: 8,386; xml: 1,433; sh: 810; ansic: 721; makefile: 110
file content (9 lines) | stat: -rwxr-xr-x 187 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#!/bin/bash 
#set -x
GIT=`which git`
if [ "x"${GIT} == "x" ]; then
	echo "#define GIT_VERSION \"tarball\""
else
	GITVER=`git describe --dirty`
	echo "#define GIT_VERSION " \"$GITVER\"
fi