public
Created

  • Download Gist
bottles
Shell
1 2 3 4 5
#!/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
bottles.cmd
Batchfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
@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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.