Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b69c068
commit 14ee271
Showing
2 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/sh | ||
|
||
if [ -z $1 ] ; then | ||
echo "Aborted." | ||
exit 1 | ||
fi | ||
|
||
sed -i 's/======/######/g' $1 | ||
sed -i 's/=====/#####/g' $1 | ||
sed -i 's/====/####/g' $1 | ||
sed -i 's/===/###/g' $1 | ||
sed -i 's/^==/##/g' $1 | ||
sed -i 's/==$/##/g' $1 | ||
sed -i 's/^=/#/g' $1 | ||
sed -i 's/=$/#/g' $1 | ||
|
||
sed -i "s/'''Tip''': />\*\*Tip\*\*<br \/>/g" $1 | ||
|
||
sed -i -e 's/{{{\n#!/{% highlight /g' $1 | ||
sed -i 's/}}}/{% endhighlight %}/g' $1 | ||
|
||
sed -i -e 's/\[\[PageOutline\]\]\n//' $1 | ||
|
||
sed -i "s/''/_/g" $1 | ||
|
||
sed -i 's/highlight php$/highlight php %}/' $1 | ||
sed -i 's/highlight sh$/highlight bash %}/' $1 | ||
sed -i 's/highlight bash$/highlight bash %}/' $1 | ||
sed -i 's/highlight ini$/highlight ini %}/' $1 | ||
sed -i 's/highlight sql$/highlight sql %}/' $1 | ||
sed -i 's/highlight xml$/highlight xml %}/' $1 |