diff options
| author | Jeffrey Armstrong <jeff@approximatrix.com> | 2025-06-20 08:21:28 -0400 |
|---|---|---|
| committer | Jeffrey Armstrong <jeff@approximatrix.com> | 2025-06-20 08:21:28 -0400 |
| commit | 83561b1acfb603967f0f598adb6f315db0608c33 (patch) | |
| tree | 504d112a9d8c06df8e5631a19299e34e093ff667 /go-w32.bat | |
| parent | 79c227155bb8fda89c3cd8ff5367687b47a0f074 (diff) | |
| download | gwblog-83561b1acfb603967f0f598adb6f315db0608c33.tar.gz gwblog-83561b1acfb603967f0f598adb6f315db0608c33.zip | |
Added convenience routine for looking up a label-replacement pair that remains unused. Fixed the RSS feed a bit for conformance. Added batch commands on windows to strip BASIC EOF character from files after building during the lowercasing step.
Diffstat (limited to 'go-w32.bat')
| -rw-r--r-- | go-w32.bat | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -2,7 +2,10 @@ ECHO OFF ECHO GW-Blog by Jeff Armstrong IF NOT EXIST %1\POSTHDR.HTM GOTO NOLABEL -ECHO 1 SITEDIR$="%1":LFN=1 >> LOC.BAS + +REM Setting LFN to 0 because 3-letter extensions are only supported +REM by PC-Basic +ECHO 1 SITEDIR$="%1":LFN=0 >> LOC.BAS ECHO -- ECHO Creating the main BASIC program @@ -34,7 +37,12 @@ GOTO DONE ECHO Converting output to lowercase SET CurrentDir=%CD% CD %1\build -for /f "Tokens=*" %%f in ('dir /l/b/a-d') do (rename "%%f" "%%f") +for /f "Tokens=*" %%f in ('dir /l/b/a-d') do ( + rename "%%f" temp.txt + copy temp.txt /a "%%f" /b + del temp.txt +) +REM rename "%%f" "%%f") CD %CurrentDir% :DONE |
