blob: 03e3dc7b166cb73a3f92db7b29cf8860b6d777bf [file] [log] [blame]
#!/usr/bin/env bash
if [[ ! -z "$1" ]]; then
cd $1
fi
for f in *.md; do
echo Processing: $f
perl -pi -e 's/ (CB-[0-9]+)/ [$1](https:\/\/issues.apache.org\/jira\/browse\/$1)/g' "$f"
perl -pi -e 's/ \[(CB-[0-9]+)\] / [$1](https:\/\/issues.apache.org\/jira\/browse\/$1) /g' "$f"
done