From b75905477fa040375057beded9ba8bde7498f1e7 Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Tue, 28 Feb 2017 21:52:58 -0800 Subject: [PATCH] Remove build.sh and template.html because both are combined into convert-markdown-into-html.sh --- .tmpl/build.sh | 20 -------------- .tmpl/template.html | 63 --------------------------------------------- 2 files changed, 83 deletions(-) delete mode 100755 .tmpl/build.sh delete mode 100644 .tmpl/template.html diff --git a/.tmpl/build.sh b/.tmpl/build.sh deleted file mode 100755 index 571b685..0000000 --- a/.tmpl/build.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -function find_line() { - local fn=$1 - local x=0 - cat $fn | while read line; do - local x=$(( x+1 )) - if echo $line | grep '${MARKDOWN}' -q; then - echo $x - break - fi - done -} - -MD_FILE=$1 -TMPL_FILE=$2 -TPL_LINE=`find_line $TMPL_FILE` -cat $TMPL_FILE | head -n $((TPL_LINE-1)) -cat $MD_FILE -cat $TMPL_FILE | tail -n +$((TPL_LINE+1)) diff --git a/.tmpl/template.html b/.tmpl/template.html deleted file mode 100644 index 84edf8f..0000000 --- a/.tmpl/template.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - -
-
- - - - - - - -- GitLab