mirror of
https://github.com/reactos/RosBE.git
synced 2024-11-27 13:20:23 +00:00
83fadc2fb5
ROSBE-84 ROSBE-88 ROSBE-89 svn path=/trunk/RosBE/; revision=2262
43 lines
1.2 KiB
Batchfile
43 lines
1.2 KiB
Batchfile
::
|
|
:: PROJECT: RosBE - ReactOS Build Environment for Windows.
|
|
:: LICENSE: GNU General Public License v2. (see LICENSE.txt)
|
|
:: FILE: Root/scut.cmd
|
|
:: PURPOSE: Manages named shortcuts to ReactOS source directories.
|
|
:: COPYRIGHT: Copyright 2016 Colin Finck <mail@colinfinck.de>
|
|
:: Daniel Reimer <reimer.daniel@freenet.de>
|
|
:: Peter Ward <dralnix@gmail.com>
|
|
::
|
|
|
|
@echo off
|
|
if not defined _ROSBE_DEBUG set _ROSBE_DEBUG=0
|
|
if %_ROSBE_DEBUG% == 1 (
|
|
@echo on
|
|
)
|
|
|
|
:: Check if the parameter is an scut parameter, which can just be forwarded to the EXE file
|
|
if /i "%1" == "add" goto paramcall
|
|
if /i "%1" == "rem" goto paramcall
|
|
if /i "%1" == "edit" goto paramcall
|
|
if /i "%1" == "def" goto paramcall
|
|
if /i "%1" == "list" goto paramcall
|
|
if /i "%1" == "/?" goto paramcall
|
|
if /i "%1" == "-h" goto paramcall
|
|
if /i "%1" == "--help" goto paramcall
|
|
|
|
:: It's a shortcut name, so change the directory
|
|
for /f "usebackq tokens=*" %%i in (`"scut.exe %*"`) do (
|
|
if /i not "%%i" == "Default" (
|
|
if exist "%%i\." (
|
|
cd /d %%i
|
|
set _ROSBE_ROSSOURCEDIR=%%i
|
|
)
|
|
)
|
|
)
|
|
goto :EOC
|
|
|
|
:paramcall
|
|
call scut.exe "%1" %2 %3
|
|
|
|
:EOC
|
|
title ReactOS Build Environment %_ROSBE_VERSION%
|