Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[c2d22c]: downloadSimpleFunctionObjects.sh Maximize Restore History

Download this file

downloadSimpleFunctionObjects.sh    20 lines (16 with data), 635 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh
if [ -d .svn ]; then
echo "Can't do this because this directory is under SVN-control"
exit 0
fi
if [ ! -d Libraries ]; then
echo "Can't find directory Libraries. Called from the wrong place"
exit 0
fi
if [ -d Libraries/simpleFunctionObjects ]; then
echo " Libraries/simpleFunctionObjects already downloaded. Updating it"
svn update Libraries/simpleFunctionObjects
else
echo "Downloading to Libraries/simpleFunctionObjects"
svn checkout https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Breeder_1.6/libraries/simpleFunctionObjects Libraries/simpleFunctionObjects
fi