File: mkgitver

package info (click to toggle)
rsync 3.2.3-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,612 kB
  • sloc: ansic: 42,277; sh: 5,922; perl: 930; python: 825; asm: 665; makefile: 349; cpp: 289; awk: 191
file content (11 lines) | stat: -rwxr-xr-x 216 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

srcdir=`dirname $0`
gitver=`git describe --abbrev=8 2>/dev/null`

if test x"$gitver" != x; then
    gitver=\""$gitver"\"
else
    gitver=RSYNC_VERSION
fi
echo "#define RSYNC_GITVER $gitver" >git-version.h