summaryrefslogtreecommitdiff
path: root/gwblog.bas
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2016-10-21 16:27:19 -0400
committerJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2016-10-21 16:27:19 -0400
commit01b00fb56dbd59782d2b2334b0e0c13bc2d41e09 (patch)
tree2fcd133337cb26bdb8b60e7cd01e082363e7f0c6 /gwblog.bas
parent806192fe26b3bc69601c0bc1eeca96a0a9cbf901 (diff)
downloadgwblog-01b00fb56dbd59782d2b2334b0e0c13bc2d41e09.tar.gz
gwblog-01b00fb56dbd59782d2b2334b0e0c13bc2d41e09.zip
Implemented deploying a static directory.
Diffstat (limited to 'gwblog.bas')
-rw-r--r--gwblog.bas12
1 files changed, 11 insertions, 1 deletions
diff --git a/gwblog.bas b/gwblog.bas
index 57c3ef8..40345ee 100644
--- a/gwblog.bas
+++ b/gwblog.bas
@@ -64,9 +64,19 @@
1215 FOR I = 1 TO POSTCNT:SFL$[I] = POSTS$[I]:TIT$[I] = POSTTIT$[I]:NEXT I
1217 LC = POSTCNT
1220 FOR FINDEX = 1 TO POSTCNT
-1225 PRINT "Processing ";POSTS$[FINDEX];"...
+1225 PRINT "Processing ";POSTS$[FINDEX];"..."
1230 DIREC$ = POSTDIR$
1240 OUTFILE$ = DESTDIR$ + "\" + LEFT$(POSTS$[FINDEX], LEN(POSTS$[FINDEX])-3) + "HTM"
1250 GOSUB 5000
1260 NEXT FINDEX
+1300 REM ======================
+1301 REM Deploy static files
+1302 REM ======================
+1305 PRINT "Deploying static files..."
+1310 SRCD$ = STATICDIR$
+1320 DESTD$ = DESTDIR$ + "\STATIC"
+1330 SHELL "MKDIR "+DESTD$
+1340 GOSUB 21000
+
+1990 PRINT "Site Generation Complete."
1999 END