Created
June 22, 2015 07:38
-
-
Save renestalder/6786d144655db47d4dd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal EnableDelayedExpansion | |
set fileDir=%~f1 | |
if exist "%fileDir%\config.rb" goto :build | |
:search | |
for /r "tokens=* delims=;" %%F in ("%fileDir%\..") do if not exist "%fileDir%\config.rb" ( | |
if "%fileDir%" neq "%%~fF" ( | |
set "fileDir=%%~fF" | |
goto :search | |
) else ( | |
set "fileDir=" | |
goto :build | |
) | |
) | |
:build | |
if not defined fileDir ( | |
echo [ERROR] config.rb not found. | |
) else ( | |
compass compile '%fileDir%' --boring | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment