File: getver.sh

package info (click to toggle)
radeontop 1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 220 kB
  • sloc: ansic: 1,589; makefile: 107; sh: 24; xml: 16
file content (14 lines) | stat: -rwxr-xr-x 163 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

ver=unknown

[ -n "`which git`" ] && ver=`git describe`

cat > include/version.h << EOF
#ifndef VER_H
#define VER_H

#define VERSION "$ver"

#endif
EOF