Skip to content

Instantly share code, notes, and snippets.

@rauhryan
Created April 16, 2012 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rauhryan/2400567 to your computer and use it in GitHub Desktop.
Save rauhryan/2400567 to your computer and use it in GitHub Desktop.
#!/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
@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