]> granicus.if.org Git - zziplib/commitdiff
making mksite.sh pages identical for cmake and automake
authorGuido Draheim <guidod@gmx.de>
Wed, 15 Apr 2020 23:16:59 +0000 (01:16 +0200)
committerGuido Draheim <guidod@gmx.de>
Wed, 15 Apr 2020 23:16:59 +0000 (01:16 +0200)
docs/CMakeLists.txt

index c6d7da993d775b8e3791720fb8fda39ebf1113bb..f52d68e243e645468fd7c9598c72d06797929f5f 100644 (file)
@@ -62,10 +62,11 @@ add_custom_command(OUTPUT changes.htm
     DEPENDS ${topdir}/ChangeLog
     VERBATIM)
 
-set(mksite_sh_args --VERSION=${VERSION} --xml --src-dir=${srcdir} --print)
+set(mksite_sh_args --VERSION=${PROJECT_VERSION} --xml --src-dir=${srcdir} --print)
 add_custom_command(OUTPUT site.html
     COMMAND ${CP} ${srcdir}/body.htm site.htm
     COMMAND ${BASH} ${srcdir}/mksite.sh ${mksite_sh_args} site.htm
+    COMMAND ${BASH} -c "for i in *.html; do sed -i -e s:${srcdir}:../../docs: $i; done; true"
     DEPENDS ${htm_FILES} changes.htm
     VERBATIM)
 add_custom_target(site DEPENDS site.html)