aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/scripts/locate_gw_root.bat
blob: 9d730322e7ce7c9dbfeefc17ac8b6ca987729d8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@echo off
setlocal enabledelayedexpansion


rem use the following 2 lines to manually point to the root folder
set FOLDER=%~dp0/
goto :manualfolder

set FOLDER_NEEDLE=sw\physx
rem set FOLDER_NEEDLE=NvCloth\src

call "%~dp0/locate.bat" FOLDER %FOLDER_NEEDLE%
:manualfolder
set returnVal=%FOLDER%\..\..\..\..\..\..\..\

( endlocal
    set "%~1=%returnVal%"
)
goto :eof