Commit 61c1ed73 authored by Timothy B. Terriberry's avatar Timothy B. Terriberry

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, 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
parent cb28419d
......@@ -24,3 +24,16 @@ dist_apidoc_DATA = bitpacking.html datastructures.html decoding.html
oggpack_writecopy.html oggpack_writeinit.html oggpack_writetrunc.html\
overview.html reference.html style.css
@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; \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment