Lines Matching +full:gen +full:- +full:pack +full:- +full:script
3 # Date: 2023-11-06
4 # This bash script generates CMSIS-DSP Documentation:
6 # Pre-requisites:
7 # - bash shell (for Windows: install git for Windows)
8 # - doxygen 1.9.6
9 # - linkchecker (can be skipped with -s)
11 set -o pipefail
13 # Set version of gen pack library
14 # For available versions see https://github.com/Open-CMSIS-Pack/gen-pack/tags.
18 DIRNAME=$(dirname "$(readlink -f "$0")")
25 echo "Usage: $(basename "$0") [-h] [-s] [-c <comp>]"
26 echo " -h,--help Show usage"
27 echo " -s,--no-linkcheck Skip linkcheck"
31 while [[ $# -gt 0 ]]; do
33 '-h'|'help')
37 '-s'|'--no-linkcheck')
51 # Set GEN_PACK_LIB_PATH to use a specific gen-pack library root
53 if [[ -f "${GEN_PACK_LIB_PATH}/gen-pack" ]]; then
54 . "${GEN_PACK_LIB_PATH}/gen-pack"
56 . <(curl -sL "https://raw.githubusercontent.com/Open-CMSIS-Pack/gen-pack/main/bootstrap")
63 if [ -z "${VERSION_FULL}" ]; then
71 projectName=$(grep -E "PROJECT_NAME\s+=" dsp.dxy.in | sed -r -e 's/[^"]*"([^"]+)".*/\1/')
74 datetime=$(date -u +'%a %b %e %Y %H:%M:%S')
75 year=$(date -u +'%Y')
77 sed -e "s/{projectNumber}/${projectNumber}/" dsp.dxy.in \
78 | sed -e "s/{cmsisProjectNumber}/${cmsisProjectNumber}/" \
81 git_changelog -f html -p "v" > src/history.txt
86 mkdir -p "${DIRNAME}/${GENDIR}/search/"
87 cp -f "${DIRNAME}/style_template/search.css" "${DIRNAME}/${GENDIR}/search/"
88 cp -f "${DIRNAME}/style_template/navtree.js" "${DIRNAME}/${GENDIR}/"
89 cp -f "${DIRNAME}/style_template/resize.js" "${DIRNAME}/${GENDIR}/"
91 sed -e "s/{datetime}/${datetime}/" "${DIRNAME}/style_template/footer.js.in" \
92 | sed -e "s/{year}/${year}/" \
93 | sed -e "s/{projectName}/${projectName}/" \
94 | sed -e "s/{projectNumber}/${projectNumber}/" \
95 | sed -e "s/{projectNumberFull}/${projectNumberFull}/" \