Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (10 sloc) 383 Bytes
#!/bin/sh
NUGET_EXE=nuget/nuget.exe
NUGET_BOOTSTRAPPER_EXE=nuget/nuget-bootstrap.exe
PACKAGE_DIR=packages
if [ ! -e $NUGET_EXE ]; then
mono --runtime=v4.0 $NUGET_BOOTSTRAPPER_EXE
mv $NUGET_BOOTSTRAPPER_EXE $NUGET_EXE
mv ${NUGET_BOOTSTRAPPER_EXE}.old $NUGET_BOOTSTRAPPER_EXE
fi
find . -name 'packages.config' -exec mono --runtime=v4.0 $NUGET_EXE install '{}' -o $PACKAGE_DIR \;