blob: 8be0904eb4dccdad6a6e110476855c3410c085d2 [file] [log] [blame] [edit]
#!/bin/bash
set -e
REPO_DIR=$(dirname $(dirname $BASH_SOURCE))
# Potentially run flutter pub get
if [[ "$REPO_DIR/tool/pubspec.yaml" -nt "$REPO_DIR/tool/.packages" ]]; then
echo Running flutter pub get...
(cd $REPO_DIR/tool; flutter pub get)
fi
$REPO_DIR/flutter-sdk/bin/dart $REPO_DIR/tool/bin/repo_tool.dart "$@"