File: version.sh

package info (click to toggle)
4store 1.1.6+20151109-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 82,388 kB
  • sloc: ansic: 65,689; sh: 2,916; perl: 2,245; makefile: 281; python: 213
file content (7 lines) | stat: -rwxr-xr-x 155 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
#!/bin/sh

if test -f "$1" ; then
	cat $1 | tr -d '\n'
else
	(git describe --tags --always 2>/dev/null || git describe --tags 2>/dev/null) | tr -d '\n'
fi