summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTim Terriberry <tterribe@xiph.org>2013-05-14 01:24:11 +0000
committerTim Terriberry <tterribe@xiph.org>2013-05-14 01:24:11 +0000
commit61c1ed7340b295796af3faf9ba8003b13347479c (patch)
tree04fa9d67f048266b8cec8cc76759e1ec46e04648 /doc
parentcb28419d55669ebdc2604438cd7cebc040da50e8 (diff)
downloadogg-git-61c1ed7340b295796af3faf9ba8003b13347479c.tar.gz
Add a makefile target to update the doc versions
This isn't automatic. It does need to be invoked explicitly, after the package version is changed in configure.in, immediately before release, but that beats updating all of those files by hand for each release. Patch contributed by Ron Lee. svn path=/trunk/ogg/; revision=18941
Diffstat (limited to 'doc')
-rw-r--r--doc/libogg/Makefile.am13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/libogg/Makefile.am b/doc/libogg/Makefile.am
index 7ecd26a..4007907 100644
--- a/doc/libogg/Makefile.am
+++ b/doc/libogg/Makefile.am
@@ -24,3 +24,16 @@ dist_apidoc_DATA = bitpacking.html datastructures.html decoding.html encoding.ht
oggpack_writecopy.html oggpack_writeinit.html oggpack_writetrunc.html\
overview.html reference.html style.css
+update-doc-version:
+ @YEAR=$$(date +%Y); DAY=$$(date +%Y%m%d); \
+ for f in $(srcdir)/*.html; do \
+ sed -e "s/2000-[0-9]\{4\} Xiph.Org/2000-$$YEAR Xiph.Org/g" \
+ -e "s/libogg release [0-9. -]\+/libogg release $(VERSION) - $$DAY/g"\
+ < $$f > $$f.tmp; \
+ if diff -q $$f $$f.tmp > /dev/null; then \
+ rm $$f.tmp; \
+ else \
+ mv $$f.tmp $$f; \
+ fi; \
+ done;
+