Created
April 16, 2012 18:36
-
-
Save rauhryan/2400567 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
for exe in `find source/packages -type d | sort -r | grep "Bottles\.Tools" | sed -n 1p | xargs grep -rl "BottleRunner\.exe" | sed -n 1p`; | |
do | |
$exe $@; | |
done |
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
@ECHO OFF | |
SETLOCAL | |
REM Find BottleRunner in one of the installed Bottles nuget packages | |
FOR /R %~dp0\source\packages %%G IN (BottleRunner.exe) DO ( | |
IF EXIST %%G ( | |
SET RUNNER=%%G | |
) | |
) | |
IF EXIST %RUNNER% ( | |
GOTO FOUND | |
) | |
IF '%RUNNER%'=='' GOTO NOTFOUND | |
:FOUND | |
%RUNNER% %* | |
GOTO :EOF | |
:NOTFOUND | |
ECHO BottleRunner.exe not found. | |
EXIT /B 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment