linkify-bugs.sh 293 B

1234567891011
  1. #!/usr/bin/env bash
  2. if [[ ! -z "$1" ]]; then
  3. cd $1
  4. fi
  5. for f in *.md; do
  6. echo Processing: $f
  7. perl -pi -e 's/ (CB-[0-9]+)/ [$1](https:\/\/issues.apache.org\/jira\/browse\/$1)/g' "$f"
  8. perl -pi -e 's/ \[(CB-[0-9]+)\] / [$1](https:\/\/issues.apache.org\/jira\/browse\/$1) /g' "$f"
  9. done