File: csv-revision

package info (click to toggle)
ipmitool 1.8.19-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,372 kB
  • sloc: ansic: 67,308; sh: 1,569; makefile: 208; xml: 32
file content (10 lines) | stat: -rwxr-xr-x 190 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

git describe --first-parent --tags 2>/dev/null | (
	IFS=- read tag rev hash
	if [ $? ] && [ -n "$rev" ]; then
		echo .$rev.$hash
	elif [ -d .git ]; then
		echo .0.gsnapshot
	fi
)