4 # This bash script generates a CMSIS Software Pack: CMSIS-FreeRTOS
9 # Set version of gen pack library
10 # For available versions see https://github.com/Open-CMSIS-Pack/gen-pack/tags.
11 # Use the tag name without the prefix "v", e.g., 0.7.0
12 REQUIRED_GEN_PACK_LIB="0.11.0"
14 # Set default command line arguments
17 # Pack warehouse directory - destination
22 # Temporary pack build directory,
27 # Specify directory names to be added to pack base directory
28 # An empty list defaults to all folders next to this script.
29 # Default: empty (all folders)
37 # Specify file names to be added to pack base directory
44 # Specify file names to be deleted from pack build directory
51 # Specify patches to be applied
56 # Specify addition argument to packchk
61 # Specify additional dependencies for packchk
69 # Optional: restrict fallback modes for changelog generation
72 # - full Tag annotations, release descriptions, or commit messages (in order)
73 # - release Tag annotations, or release descriptions (in order)
74 # - tag Tag annotations only
76 PACK_CHANGELOG_MODE="full"
79 # custom pre-processing steps
81 # usage: preprocess <build>
82 # <build> The build folder
84 function preprocess() {
85 # add custom steps here to be executed
86 # before populating the pack build folder
87 pushd ./Documentation/Doxygen/ > /dev/null
88 echo "Changing working directory to $(pwd)"
90 echo "Executing ./gen_doc.sh"
94 echo "Changing working directory to $(pwd)"
99 # custom post-processing steps
101 # usage: postprocess <build>
102 # <build> The build folder
104 function postprocess() {
105 # add custom steps here to be executed
106 # after populating the pack build folder
107 # but before archiving the pack into output folder
111 ############ DO NOT EDIT BELOW ###########
113 # Set GEN_PACK_LIB_PATH to use a specific gen-pack library root
114 # ... instead of bootstrap based on REQUIRED_GEN_PACK_LIB
115 if [[ -f "${GEN_PACK_LIB_PATH}/gen-pack" ]]; then
116 . "${GEN_PACK_LIB_PATH}/gen-pack"
118 . <(curl -sL "https://raw.githubusercontent.com/Open-CMSIS-Pack/gen-pack/main/bootstrap")
121 gen_pack "${DEFAULT_ARGS[@]}" "$@"