Commit Graph

19 Commits

Author SHA1 Message Date
Jeremy Lakeman
10a2edd5c9 Don't depend on .git folders or on error text strings 2014-12-12 11:01:34 +10:30
Jeremy Lakeman
bcd9575b54 Fix minor compilation issues on CentOS.
- ensure size_t is defined when compiling xprintf.h
- declare overlay_route_record as a union field in overlay_route_record to avoid alignment issues
- set the result of fwrite and fputs
- support slightly older git version
2014-10-20 12:35:21 +10:30
Jeremy Lakeman
9896b6680a Display git version when running within a submodule 2014-08-25 13:51:30 +09:30
Jeremy Lakeman
fa6c563e5b Cleanup git version arguments 2014-03-05 10:26:54 -08:00
Andrew Bettison
8e9440860b version_string.sh uses VERSION.txt if not in a Git repo 2014-03-03 15:21:53 +10:30
Andrew Bettison
2854821678 Improve version_string.sh: add <refspec> argument 2014-03-03 15:16:53 +10:30
Andrew Bettison
702d22de99 Fix version_string.sh: check for .git directory was too early 2013-11-21 17:09:25 +10:30
gardners
003603b97c minor tweaks to bash compatibility fixes. 2013-11-21 16:36:59 +10:30
gardners
22258b60c0 fixes and improvements to handling of git repo with no tags on branch. 2013-11-21 16:35:02 +10:30
gardners
fd6db45759 stop failure to get commit id when in a git repository but not on
a tagged branch (fd 5 was non-existent).  Not tested with a tagged
branch.
2013-10-22 12:23:03 -07:00
gardners
6ee774f10b build when not in git repostory. 2013-10-20 14:59:00 -07:00
Andrew Bettison
6fadb73f1f Improve version_string.sh: detect changes in submodules 2013-10-07 04:47:13 +10:30
Andrew Bettison
c7eb5776f9 Fix version_string.sh script
Fix logic for appending dirty suffix to synthetic version string
(only used when no tags present, ie "git describe" fails).
2013-09-24 10:46:20 +09:30
Andrew Bettison
2e211a62d5 Fix version_string.sh: dirty suffix on untracked files
Don't use the git describe --dirty option to append the suffix
because it only considers changes in tracked files as dirt.  If
the script wants to consider untracked files as dirt then this
will not do.
2013-09-23 17:38:23 +09:30
Andrew Bettison
db7e9004b3 Fix bug in version_string.sh
git describe --dirty does not accept HEAD (committish) arg
2013-09-17 10:51:50 +09:30
Andrew Bettison
987875969c Improve version_string.sh script
Full --help usage message
Better error handling and reporting
Only considers tags that look like version numbers
Does not create and delete local "START" tag
Lots of options, including --ignore-untracked and --unmodified
Suitable for use in Batphone repository
2013-09-12 17:50:54 +09:30
gardners
8045e57b81 fixed version_string.sh to work (or at least not fail) with git
1.7.3.
2013-04-26 15:27:53 +09:30
Andrew Bettison
edd245fa81 Fix version_string.sh for older Git versions 2013-03-18 14:31:19 +10:30
Andrew Bettison
b17f5a6f63 Servald version string from git describe 2013-03-12 14:03:33 +10:30