aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui-tree.h
blob: bbd34e3566a528e4bfecb1b66ac4b391472648d7 (plain)
1
2
3
4
5
6
#!/bin/sh

# Get version-info specified in Makefile
V=$1

"nv">V=$(git describe --abbrev=4 HEAD 2>/dev/null) fi new="CGIT_VERSION = $V" old=$(cat VERSION 2>/dev/null) # Exit if VERSION is uptodate test "$old" = "$new" && exit 0 # Update VERSION with new version-info echo "$new" > VERSION cat VERSION