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
commit46ac42404f70846c0701d4659888c3ac0252d063 (patch)
tree04fa9d67f048266b8cec8cc76759e1ec46e04648 /doc
parent49329b82f16aa2856500dc772362401ca2f2a979 (diff)
downloadogg-46ac42404f70846c0701d4659888c3ac0252d063.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. git-svn-id: http://svn.xiph.org/trunk/ogg@18941 0101bb08-14d6-0310-b084-bc0e0c8e3800
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;
+