summaryrefslogtreecommitdiff
path: root/go.bat
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2016-11-12 14:58:04 -0500
committerJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2016-11-12 14:58:04 -0500
commit5f7b8890edc8ae965dd19d2c9a288c1a164a1ed4 (patch)
tree26d0dfb851c4600ee0c8348f27adeb6f60467401 /go.bat
parentf31d5f687cac2dcbebe770dab86f71702b9a3ba3 (diff)
downloadgwblog-5f7b8890edc8ae965dd19d2c9a288c1a164a1ed4.tar.gz
gwblog-5f7b8890edc8ae965dd19d2c9a288c1a164a1ed4.zip
Updated batch file to accept the location of blog files.
Diffstat (limited to 'go.bat')
-rw-r--r--go.bat31
1 files changed, 29 insertions, 2 deletions
diff --git a/go.bat b/go.bat
index 71ca9cb..d22317b 100644
--- a/go.bat
+++ b/go.bat
@@ -1,2 +1,29 @@
-COPY GWBLOG.BAS+POST.BAS+TXTILE.BAS+TMPLATE.BAS+FILES.BAS+TSORT.BAS+LINK.BAS+COPY.BAS BLOG.BAS
-..\GWBASIC BLOG.BAS
+ECHO OFF
+ECHO GW-Blog by Jeff Armstrong
+
+IF NOT EXIST %1\POSTHDR.HTM GOTO NOLABEL
+ECHO 1 SITEDIR$="%1" >> LOC.BAS
+
+ECHO --
+ECHO Creating the main BASIC program
+COPY LOC.BAS+GWBLOG.BAS+POST.BAS+TXTILE.BAS+TMPLATE.BAS+FILES.BAS+TSORT.BAS+LINK.BAS+COPY.BAS BLOG.BAS
+ECHO --
+ECHO Launching GW-Blog
+GWBASIC BLOG.BAS
+ECHO --
+ECHO Performing cleanup
+DEL LOC.BAS
+DEL BLOG.BAS
+
+GOTO DONE
+
+:NOLABEL
+ECHO Usage: GO.BAT [absolute path to blog files]
+ECHO --
+ECHO Blog directory should contain:
+ECHO PAGES\ - Static pages for the blog
+ECHO POSTS\ - Date-encoded posts for the blog
+ECHO POSTHDR.HTM - HTML header with template tags
+ECHO POSTFTR.HTM - HTML footer with template tags
+ECHO --
+:DONE