File: changelog2bbcode.sh

package info (click to toggle)
warzone2100 4.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 660,320 kB
  • sloc: cpp: 676,209; ansic: 391,201; javascript: 78,238; python: 16,632; php: 4,294; sh: 4,094; makefile: 2,629; lisp: 1,492; cs: 489; xml: 404; perl: 224; ruby: 156; java: 89
file content (6 lines) | stat: -rwxr-xr-x 328 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
#!/bin/sh
sed -e 's/  \*/ [\*]/g' \
    -e 's/#\([0-9]*\)/[url=https:\/\/github.com\/Warzone2100\/warzone2100\/issues\/\1]#\1[\/url]/g' \
    -e 's/ \* \(.*\):/[\/list][b]\1[\/b][list]/g' \
    -e 's/commit\:\([a-f0-9]\{10\}\)[a-f0-9]*/\[githash\]\1\[\/githash\]/g' \
    -e 's/ticket\:\([a-f0-9]*\)/\[ticket\]\1\[\/ticket\]/g'