xref: /third_party/lz4/contrib/gen_manual/gen-lz4-manual.sh
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/lz4/contrib/gen_manual/
127b27ec6Sopenharmony_ci#!/bin/sh
227b27ec6Sopenharmony_ci
327b27ec6Sopenharmony_ciLIBVER_MAJOR_SCRIPT=`sed -n '/define LZ4_VERSION_MAJOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ../../lib/lz4.h`
427b27ec6Sopenharmony_ciLIBVER_MINOR_SCRIPT=`sed -n '/define LZ4_VERSION_MINOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ../../lib/lz4.h`
527b27ec6Sopenharmony_ciLIBVER_PATCH_SCRIPT=`sed -n '/define LZ4_VERSION_RELEASE/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ../../lib/lz4.h`
627b27ec6Sopenharmony_ciLIBVER_SCRIPT=$LIBVER_MAJOR_SCRIPT.$LIBVER_MINOR_SCRIPT.$LIBVER_PATCH_SCRIPT
727b27ec6Sopenharmony_ci
827b27ec6Sopenharmony_ciecho LZ4_VERSION=$LIBVER_SCRIPT
927b27ec6Sopenharmony_ci./gen_manual "lz4 $LIBVER_SCRIPT" ../../lib/lz4.h ./lz4_manual.html
1027b27ec6Sopenharmony_ci./gen_manual "lz4frame $LIBVER_SCRIPT" ../../lib/lz4frame.h ./lz4frame_manual.html
11

Indexes created Thu Nov 07 10:32:03 CST 2024