forked from sass/sassc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Broken] Add windows bootstrap and use SASS_LIBSASS_PATH consistently
Relative path resolution in the scripts isn't working correctly. Then this should get called as a a PreBuild step in the vcxproj to setup the expexted layout if none is found [skip ci]
- Loading branch information
Showing
3 changed files
with
161 additions
and
112 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
@echo off | ||
setlocal | ||
|
||
if not defined SASS_LIBSASS_PATH ( | ||
pushd . | ||
cd "%~dp0..\..\" | ||
set SASS_LIBSASS_PATH="%CD%" | ||
popd | ||
) | ||
echo SASS_LIBSASS_PATH variable is %SASS_LIBSASS_PATH% | ||
|
||
if NOT EXIST "%SASS_LIBSASS_PATH%" ( | ||
echo Make Dir "%SASS_LIBSASS_PATH%" | ||
REM mkdir "%SASS_LIBSASS_PATH%" | ||
) | ||
if NOT EXIST "%SASS_LIBSASS_PATH%\.git\" ( | ||
echo Clone to "%SASS_LIBSASS_PATH%" | ||
REM git clone https://github.com/sass/libsass.git "%SASS_LIBSASS_PATH%" | ||
) ELSE ( | ||
echo "LibSass already exists, skiping Git Clone" | ||
) | ||
|
||
if not defined "%SASS_SPEC_PATH%" ( | ||
pushd . | ||
cd "%~dp0..\..\sass-spec" | ||
set SASS_SPEC_PATH="%CD%" | ||
popd | ||
REM echo "SASS_SPEC_PATH variable is missing, so using "%SASS_SPEC_PATH%" | ||
) | ||
echo SASS_SPEC_PATH variable is %SASS_SPEC_PATH% | ||
|
||
if NOT EXIST "%SASS_SPEC_PATH%" ( | ||
echo Make Dir "%SASS_SPEC_PATH%" | ||
) | ||
|
||
if NOT EXIST "%SASS_SPEC_PATH%\.git" ( | ||
echo Clone to "%SASS_SPEC_PATH%" | ||
REM git clone https://github.com/sass/sass-spec.git "$SASS_SPEC_PATH" | ||
) ELSE ( | ||
echo "sass-spec already exists, skiping Git Clone" | ||
) | ||
git -C "%SASS_SPEC_PATH%" describe --abbrev=4 --dirty --always --tags | ||
REM exit 0 |
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
Oops, something went wrong.