From f2a688c60a57891f1b046b6e91b237dd23cd0b3f Mon Sep 17 00:00:00 2001 From: Medium Fries Date: Thu, 25 Apr 2019 14:53:21 -0700 Subject: [PATCH] removed unused or pointless fluff --- make.sh | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/make.sh b/make.sh index f39b3c2..34d8014 100755 --- a/make.sh +++ b/make.sh @@ -2,14 +2,6 @@ # compiles new post into target directory rootDir='./tmp/' -mdRoot='./prebild/' -mPostDir='./prebuild/post/' - -# Right now: -# no images -# root pages -# post pages - post() { # First get the body of the document tmp=".swap" @@ -20,27 +12,10 @@ post() { sed -i "3i ${base%.*}" $tmp # finally move this post to its proper location in the _rootDir mv $tmp "$rootDir/post/${base%.*}.html" + rm -f $tmp } -# Options: -# -f post-file -# -s stylesheet -#[[ -z $# ]] && echo "./make.sh -h" && echo 'for more info' && exit 0 - target="" -stylesheet="" -while getopts "f:h" opt; do - case $opt in - h) - echo '-h shows this prompt' - ;; - f) - target=$2 - echo "Target post $2" - ;; - esac +for file in $@;do + post $target done - -# attempt to build the new post -[[ -z $target ]] && echo 'No target' && exit 0 -post $target