mirror of
https://github.com/reactos/RosBE.git
synced 2024-11-23 19:39:51 +00:00
e3613d7d76
svn path=/trunk/tools/RosBE/; revision=927
46 lines
1.3 KiB
Batchfile
46 lines
1.3 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 2009 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 (`""%_ROSBE_BASEDIR%\Tools\scut.exe" %*"`) do (
|
|
if /i not "%%i" == "Default" (
|
|
if exist "%%i\." (
|
|
cd /d %%i
|
|
set _ROSBE_ROSSOURCEDIR=%%i
|
|
)
|
|
)
|
|
)
|
|
goto :EOC
|
|
|
|
:paramcall
|
|
|
|
call "%_ROSBE_BASEDIR%\Tools\scut.exe" "%1" %2 %3
|
|
|
|
:EOC
|
|
|
|
if defined _ROSBE_VERSION (
|
|
title ReactOS Build Environment %_ROSBE_VERSION%
|
|
)
|