|
|
|
```sh
|
|
|
|
|
|
convert moinmoin 2 git-wiki
|
|
#! /bin/sh
|
|
|
|
#
|
|
|
|
# $OCP/Scripts.d/moinmoin2GitLabWiki
|
|
|
|
|
|
```sh
|
|
# simple sed script to convert from moinmoin to GitLabWiki syntax
|
|
cat a | sed 's/^===/###/' | sed 's/^==/##/' | sed 's/^=/#/' | sed 's/=*.$//' | \
|
|
|
|
sed 's/^ \*/ -/' | sed 's/^ \*/-/' | \
|
|
|
|
sed 's/^{{{/```sh/' | sed 's/^}}}/```/' > b
|
|
|
|
```
|
|
|
|
|
|
|
|
Überschriften \
|
|
sed '{
|
|
Listen \
|
|
# reformat H1, H2, H3
|
|
Code
|
|
s/^===/###/
|
|
|
|
s/^==/##/
|
|
|
|
s/^=/#/
|
|
|
|
s/=*.$//
|
|
|
|
# unordered list, 2nd level
|
|
|
|
s/^ \*/ -/
|
|
|
|
# unordered list, 1st level
|
|
|
|
s/^ \*/-/
|
|
|
|
# in line code
|
|
|
|
s/^{{{/```sh/
|
|
|
|
s/^}}}/```/ }' $1
|
|
|
|
|
|
|
|
exit
|
|
|
|
```
|
|
|
|
|
|
Es fehlen:
|
|
Es fehlen:
|
|
- TOC
|
|
- TOC
|
... | | ... | |