diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-13 23:43:07 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-13 23:43:07 +0300 |
commit | 3b336240d9ac05bac621568b95086dbff2371acd (patch) | |
tree | c4a1f208ce8f33300f7e31811b79aa921f9e357e /build-aux | |
parent | 4c1056b45580fcb687cac656834f42dd9fba4ae8 (diff) | |
download | grecs-3b336240d9ac05bac621568b95086dbff2371acd.tar.gz grecs-3b336240d9ac05bac621568b95086dbff2371acd.tar.bz2 |
Improvements in git2chg.awk and grecs setup sequence.
* build-aux/git2chg.awk: New configuration variables:
since=YYYY-MM-DD, to cut off entries earlier than the
given date, and append=FILE, to append FILE to the
generated ChangeLog.
* am/grecs.m4 (GRECS_HOST_PROJECT_INCLUDES): New substitution
variable.
* src/Make.am (INCLUDES): Expand GRECS_HOST_PROJECT_INCLUDES.
* tests/Makefile.am: Likewise.
Diffstat (limited to 'build-aux')
-rw-r--r-- | build-aux/git2chg.awk | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/build-aux/git2chg.awk b/build-aux/git2chg.awk index 1ddf698..11e2f1c 100644 --- a/build-aux/git2chg.awk +++ b/build-aux/git2chg.awk @@ -16,4 +16,26 @@ +BEGIN { + if (since) + split(since,since_a,"-") +} + +function timeok(t, a) { + if (!since) + return 1 + split(t,a,"-") + if (a[1] < since_a[1]) + return 0 + if (a[1] > since_a[1]) + return 1 + if (a[2] < since_a[2]) + return 0 + if (a[2] > since_a[2]) + return 1 + return a[3] > since_a[3] +} + /^[0-9]+ .* +<[^>]+>/ { s = strftime("%F", $1) + if (!timeok(s)) + exit sub(/^[0-9]+ +/,"") @@ -37,2 +59,10 @@ NF==0 { END { + if (append) { + print "" + while ((getline < append) > 0) { + if (match($0, /^Local *Variables:/)) + break + print + } + } print "\f" |