mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-12 20:47:06 +00:00
FS-11066: [Build-System] Make WIX project be able to produce snapshots with proper msi naming on windows.
This commit is contained in:
1 parent
e6ec3f8408
commit
d2df64ec07
7 files changed
+1215
-3
No files matched your search
@@ -0,0 +1,26 @@
|
||||
@echo off
|
||||
setlocal EnableExtensions EnableDelayedExpansion
|
||||
REM Usage: wslpath.cmd -w <linux path>
|
||||
REM Converts a path from the Linux /mnt/c/... format into Windows format.
|
||||
|
||||
REM Usage: wslpath.cmd -u <windows path>
|
||||
REM Converts a path from Windows to Linux format.
|
||||
|
||||
REM Both usages require `wslrun.cmd` in the same directory as this file.
|
||||
|
||||
if exist %0\..\wslrun.cmd set WSLRUN="%0\..\wslrun.cmd"
|
||||
if exist %CD%\%0\..\wslrun.cmd set WSLRUN="%CD%\%0\..\wslrun.cmd"
|
||||
|
||||
if "%1" == "-w" goto :towindows
|
||||
if "%1" == "-u" shift /1
|
||||
|
||||
REM Convert path to Linux
|
||||
if exist "%1\*" (pushd %1) else (pushd %~dp1)
|
||||
if ERRORLEVEL 1 goto :eof
|
||||
%WSLRUN% pwd
|
||||
popd
|
||||
goto :eof
|
||||
|
||||
:towindows
|
||||
REM Convert path to Windows
|
||||
%WSLRUN% cd "'%2'" ^&^& cmd.exe /c cd
|
||||
Reference in new issue
Block a user