mirror of
https://github.com/ktds-dg0501/kt-event-marketing.git
synced 2025-12-06 10:46:23 +00:00
41 lines
1.1 KiB
Bash
Executable File
41 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# PlantUML and 키워드 앞 공백 라인 제거 스크립트
|
|
# par/and 블록에서 and 키워드 앞의 빈 줄을 제거
|
|
|
|
echo "Removing blank lines before 'and' keywords..."
|
|
|
|
# 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"
|
|
# Remove blank line immediately before 'and' keyword
|
|
# Look for pattern: empty line + line with spaces + 'and'
|
|
perl -i.bak5 -pe 's/^\s*\n(\s+and\s*$)/$1/g' "$file"
|
|
echo " Fixed: $file"
|
|
fi
|
|
done
|
|
|
|
cd - > /dev/null
|
|
|
|
# Outer sequence files
|
|
cd design/backend/sequence/outer
|
|
|
|
if [ -f "이벤트생성플로우.puml" ]; then
|
|
echo "Processing: 이벤트생성플로우.puml"
|
|
perl -i.bak5 -pe 's/^\s*\n(\s+and\s*$)/$1/g' "이벤트생성플로우.puml"
|
|
echo " Fixed: 이벤트생성플로우.puml"
|
|
fi
|
|
|
|
cd - > /dev/null
|
|
|
|
echo ""
|
|
echo "Blank lines before 'and' keywords removed."
|
|
echo "Running validation..."
|
|
echo ""
|
|
|
|
# Run validation
|
|
./validate-puml-fixed.sh
|