From abc5b62a2a5e7088131ed544bae6a611c7c844f3 Mon Sep 17 00:00:00 2001 From: "jueon.park" Date: Mon, 20 Nov 2023 22:37:31 +0900 Subject: [PATCH] Update generate_model_header.sh - Unified brace style. - Changed the indentation. --- scripts/generate_model_header.sh | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/scripts/generate_model_header.sh b/scripts/generate_model_header.sh index 5db10f9..8dd12bc 100755 --- a/scripts/generate_model_header.sh +++ b/scripts/generate_model_header.sh @@ -20,38 +20,40 @@ cat << EOF > $HEADER_FILE #include -namespace GPIO { - enum class Model { +namespace GPIO +{ + enum class Model + { EOF # Add enum class items using a for loop for MODEL in $JETSON_MODELS; do - echo " $MODEL," >> $HEADER_FILE + echo " $MODEL," >> $HEADER_FILE done # Add remaining part cat << EOF >> $HEADER_FILE - }; + }; - // names - constexpr const char* MODEL_NAMES[] = { + // names + constexpr const char* MODEL_NAMES[] = { EOF # Add enum names using a for loop for MODEL in $JETSON_MODELS; do - echo " \"$MODEL\"," >> $HEADER_FILE + echo " \"$MODEL\"," >> $HEADER_FILE done # Add remaining part cat << EOF >> $HEADER_FILE - }; + }; - // alias + // alias EOF # Add enum alias generation commands for MODEL in $JETSON_MODELS; do - echo " constexpr Model $MODEL = Model::$MODEL;" >> $HEADER_FILE + echo " constexpr Model $MODEL = Model::$MODEL;" >> $HEADER_FILE done # Add remaining part