mirror of
https://github.com/ktds-dg0501/kt-event-marketing.git
synced 2025-12-06 10:46:23 +00:00
40 lines
992 B
Bash
Executable File
40 lines
992 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# PlantUML par 블록 수정 스크립트
|
|
# 한글 레이블을 note로 변경
|
|
|
|
echo "Fixing par blocks in PlantUML files..."
|
|
|
|
# Inner sequence files
|
|
cd design/backend/sequence/inner
|
|
|
|
for file in ai-트렌드분석및추천.puml content-이미지생성.puml distribution-다중채널배포.puml event-대시보드조회.puml; do
|
|
if [ -f "$file" ]; then
|
|
echo "Processing: $file"
|
|
# note over : 패턴 제거 (par 다음 줄)
|
|
sed -i.bak3 '/^ par$/{
|
|
N
|
|
s/\n note over : .*//
|
|
}' "$file"
|
|
echo " Fixed: $file"
|
|
fi
|
|
done
|
|
|
|
cd - > /dev/null
|
|
|
|
# Outer sequence files
|
|
cd design/backend/sequence/outer
|
|
|
|
if [ -f "이벤트생성플로우.puml" ]; then
|
|
echo "Processing: 이벤트생성플로우.puml"
|
|
sed -i.bak3 '/^par$/{
|
|
N
|
|
s/\n note over : .*//
|
|
}' "이벤트생성플로우.puml"
|
|
echo " Fixed: 이벤트생성플로우.puml"
|
|
fi
|
|
|
|
cd - > /dev/null
|
|
|
|
echo "All par blocks fixed."
|