#!/bin/bash # Auther: Skiqqy HOST="https://github.com/" conv () { # Take a file and convert it to html by making substitutes. # ^/name -> https://github.com/name # */name.domain -> https://name.domain # !/name.domain -> http://name.domain sed -E "s|(\\^/)([^ \)]*)|^\/\2|g" | sed -E "s|(\\*/)([^ \)]*)|*\/\2|g" | sed -E "s|(\\!/)([^ \)]*)|!\/\2|g" | sed -E '/%%BODY%%/r /dev/stdin' raw/template.html | sed -E '/%%BODY%%/d' | sed 's/%%HEADER%%/'"$header"'/g' } main () { while getopts "d" opt do case $opt in d) dev="