diff options
| author | Jeffrey Armstrong <jeffrey.armstrong@approximatrix.com> | 2016-11-12 14:58:04 -0500 |
|---|---|---|
| committer | Jeffrey Armstrong <jeffrey.armstrong@approximatrix.com> | 2016-11-12 14:58:04 -0500 |
| commit | 5f7b8890edc8ae965dd19d2c9a288c1a164a1ed4 (patch) | |
| tree | 26d0dfb851c4600ee0c8348f27adeb6f60467401 /go.bat | |
| parent | f31d5f687cac2dcbebe770dab86f71702b9a3ba3 (diff) | |
| download | gwblog-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.bat | 31 |
1 files changed, 29 insertions, 2 deletions
@@ -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
|
