-
Notifications
You must be signed in to change notification settings - Fork 40
/
_debug.bat
35 lines (31 loc) · 878 Bytes
/
_debug.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@echo off
setlocal enabledelayedexpansion
REM Check the first argument provided to the script
if "%~1"=="jekyll" (
echo Running Jekyll build...
jekyll build -s temp/pages -d output
goto :eof
)
if "%~1"=="clean" (
echo Cleaning up directories...
REM For each directory you want to delete, repeat the following block
if exist ".\input-cache\" (
rmdir /s /q ".\input-cache"
echo Removed: .\input-cache
)
if exist ".\temp\" (
rmdir /s /q ".\temp"
echo Removed: .\temp
)
if exist ".\output\" (
rmdir /s /q ".\output"
echo Removed: .\output
)
if exist ".\template\" (
rmdir /s /q ".\template"
echo Removed: .\template
)
goto :eof
)
REM If none of the conditions matched, print an error message
echo Invalid argument. Please use "debug jekyll" or "debug clean".