Skip to content

Commit

Permalink
fix: correct bootstrap script
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Oct 24, 2024
1 parent d91058b commit 2b28390
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ PATCH_LOG_FILES=(
)

for file in "${PATCH_LOG_FILES[@]}"; do
$SED 's/fprintf(stderr, /LOGE(/g' "$file"
$SED 's/printf(/LOGI(/g' "$file"
$SED '/#pragma once/a #include "log.h"' "$file"
filename=$(basename "$file")
$SED 's/fprintf(stderr, /LOGE(/g' "cpp/$filename"
$SED 's/printf(/LOGI(/g' "cpp/$filename"
$SED '/#pragma once/a #include "log.h"' "cpp/$filename"
done

for file in "${FILES[@]}"; do
Expand Down

0 comments on commit 2b28390

Please sign in to comment.