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.9.1"
14 # Set default command line arguments
17 # Pack warehouse directory - destination
20 # PACK_OUTPUT=./output
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)
38 # Specify file names to be added to pack base directory
45 # Specify file names to be deleted from pack build directory
48 # PACK_DELETE_FILES=""
50 # Specify patches to be applied
55 # Specify addition argument to packchk
60 # Specify additional dependencies for packchk
67 # Optional: restrict fallback modes for changelog generation
70 # - full Tag annotations, release descriptions, or commit messages (in order)
71 # - release Tag annotations, or release descriptions (in order)
72 # - tag Tag annotations only
74 PACK_CHANGELOG_MODE="full"
77 # custom pre-processing steps
79 # usage: preprocess <build>
80 # <build> The build folder
82 function preprocess() {
83 # add custom steps here to be executed
84 # before populating the pack build folder
90 # custom post-processing steps
92 # usage: postprocess <build>
93 # <build> The build folder
95 function postprocess() {
96 # add custom steps here to be executed
97 # after populating the pack build folder
98 # but before archiving the pack into output folder
102 ############ DO NOT EDIT BELOW ###########
104 # Set GEN_PACK_LIB_PATH to use a specific gen-pack library root
105 # ... instead of bootstrap based on REQUIRED_GEN_PACK_LIB
106 if [[ -f "${GEN_PACK_LIB_PATH}/gen-pack" ]]; then
107 . "${GEN_PACK_LIB_PATH}/gen-pack"
109 . <(curl -sL "https://raw.githubusercontent.com/Open-CMSIS-Pack/gen-pack/main/bootstrap")
112 gen_pack "${DEFAULT_ARGS[@]}" "$@"