[xiph-commits] r18941 - trunk/ogg/doc/libogg
tterribe at svn.xiph.org
tterribe at svn.xiph.org
Mon May 13 18:24:11 PDT 2013
Author: tterribe
Date: 2013-05-13 18:24:11 -0700 (Mon, 13 May 2013)
New Revision: 18941
Modified:
trunk/ogg/doc/libogg/Makefile.am
Log:
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.
Modified: trunk/ogg/doc/libogg/Makefile.am
===================================================================
--- trunk/ogg/doc/libogg/Makefile.am 2013-05-11 06:39:40 UTC (rev 18940)
+++ trunk/ogg/doc/libogg/Makefile.am 2013-05-14 01:24:11 UTC (rev 18941)
@@ -24,3 +24,16 @@
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;
+
More information about the commits
mailing list