Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Side by Side Diff: runtime/observatory/maintainers/snapshot_dependencies.sh

Issue 810623005: Build Observatory with runtime (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/bin/sh
2
3 # This script will create a deep snapshot of all Observatory package
4 # dependencies. The output will be in observatory_pub_packages which
5 # then should be committed to third_party/observatory_pub_packages.
6
7
8 PUBSPEC_INPUT="pubspec.template"
9 PUBSPEC_OUTPUT="pubspec.yaml"
10 PACKAGES_INPUT="packages"
11 PACKAGES_OUTPUT="observatory_pub_packages"
12
13 if [ ! -d "../maintainers" ]; then
14 echo "Please run this script from the maintainers directory"
15 exit
16 fi
17
18 if [ ! -f $PUBSPEC_INPUT ]; then
19 echo "Cannot find $PUBSPEC_INPUT"
20 exit
21 fi
22
23 # Cleanup leftovers
24 rm -f $PUBSPEC_OUTPUT
25 rm -rf $PACKAGES_INPUT
26 rm -rf $PACKAGES_OUTPUT
27
28 # Setup for pub get run
29 cp $PUBSPEC_INPUT $PUBSPEC_OUTPUT
30
31 # Run pub get
32 pub get
33
34 # Prepare for output
35 mkdir $PACKAGES_OUTPUT
36
37 OUTPUT_BASE=`realpath $PACKAGES_OUTPUT`
38 # Copy necessary files
39 pushd $PACKAGES_INPUT > /dev/null
40 for i in *; do
41 ACTUAL_PATH=`realpath $i`
42 mkdir $OUTPUT_BASE/$i
43 mkdir $OUTPUT_BASE/$i/lib
44 #grep "^name\|^version" $ACTUAL_PATH/../pubspec.yaml > $OUTPUT_BASE/$i/pubspec .yaml
turnidge 2015/01/05 21:05:55 Commented line (you noticed this yourself)
Cutch 2015/01/05 21:20:19 Done.
45 cp $ACTUAL_PATH/../pubspec.yaml $OUTPUT_BASE/$i/pubspec.yaml
46 rsync -Lr $ACTUAL_PATH/* $OUTPUT_BASE/$i/lib
47 done
48 popd > /dev/null
49
50 echo '***'
51 echo 'Dumping package dependencies:':
52 echo ''
53 echo 'dependency_overrides:'
54 pushd $PACKAGES_OUTPUT > /dev/null
55 for i in *; do
56 echo -e " $i:\n path: ../../third_party/$PACKAGES_OUTPUT/$i"
57 done
58 popd > /dev/null
59 echo ''
60 echo '***'
61 echo -n 'Now run: rsync -a --delete observatory_pub_packages/ '
62 echo '~/workspace/dart-third_party/observatory_pub_packages/'
63 echo '***'
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698