From 8a83f2e2c08ab0619df02288f3c2cf32a2c53c17 Mon Sep 17 00:00:00 2001 From: Gabe Date: Tue, 7 Sep 2021 17:31:07 +0000 Subject: [PATCH] Delete 'asciidoc-to-site.sh' No longer relevant with adocstaticsitegen.py doing the same thing. --- asciidoc-to-site.sh | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100755 asciidoc-to-site.sh diff --git a/asciidoc-to-site.sh b/asciidoc-to-site.sh deleted file mode 100755 index 4ddfd24..0000000 --- a/asciidoc-to-site.sh +++ /dev/null @@ -1,24 +0,0 @@ -#! /bin/sh -#give a directory that contains a asciidoc folder and an html folder, and it will convert all asciidoc files to html files, then export the html folder to a www directory, ready to deploy as a static page. -cd "$1" - -#copy the directory structure -for i in $(find ./asciidoc -type d) -do - mkdir -p $(echo "$i" | sed s:/asciidoc/:/html/:) -done - - -#convert files -for i in $(find ./asciidoc -type f -name *.adoc) -do - echo "converting $i" - asciidoctor --destination-dir ./html/ $i -done - -#package it up, ready to deploy. -cd ../ -mkdir -p www/$1 -cp -rf ./$1/html/* www/$1/ -tar -c -f web.tar www -#transfer it.