Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 43 lines (28 sloc) 0.843 kb
#/bin/bash
DART_DEPS_CONFIG=dart_deps.config
function update_dep_path() {
local DEP=${1}
local DIR=${2}
echo "Updating $DEP from $DART/$DIR..."
if [ -d src/$DEP ]; then
rm -Rf src/$DEP
fi
rsync -avC --exclude .DS_Store $DART/$DIR src
}
function update_from_data_file() {
local FILE=${1}
for DEPANDPATH in `cat $FILE | egrep -v '^#.*'`; do
local DEP=`echo $DEPANDPATH | awk '-F=' '{print $1}'`
local DIR=`echo $DEPANDPATH | awk '-F=' '{print $2}'`
update_dep_path $DEP $DIR
done
}
if [ ! -d $DART ]; then
echo "You must set environment variable DART to the path of the Dart installation"
else
update_from_data_file $DART_DEPS_CONFIG
rm -fr src/http src/http.dart
mkdir -p src/http
cp $DART/samples/chat/http.dart src/http/
cp $DART/samples/chat/http_impl.dart src/http/
fi
Jump to Line
Something went wrong with that request. Please try again.