1#!/bin/bash
2
3# Populates glide maven repository with current snapshot from google3
4
5
6TARGET_DIR=`pwd`
7
8p4 g4d -f sync_glide_google3_android
9pushd /google/src/cloud/$USER/sync_glide_google3_android/google3 >> /dev/null
10
11SYNCED_CL=`g4 sync | grep @ | sed s/.*@//`
12
13blaze build \
14   third_party/java_src/android_libs/glide/annotation:libannotation.jar \
15   third_party/java_src/android_libs/glide/annotation:libannotation-src.jar \
16   third_party/java_src/android_libs/glide/annotation/compiler:libcompiler_lib.jar \
17   third_party/java_src/android_libs/glide/annotation/compiler:libcompiler_lib-src.jar \
18   third_party/java_src/android_libs/glide/integration/recyclerview:librecyclerview.jar \
19   third_party/java_src/android_libs/glide/integration/recyclerview:librecyclerview-src.jar \
20   third_party/java_src/android_libs/glide/library/src/main:libglide.jar \
21   third_party/java_src/android_libs/glide/library/src/main:libglide-src.jar \
22   third_party/java_src/android_libs/glide/third_party/disklrucache:libdisklrucache.jar \
23   third_party/java_src/android_libs/glide/third_party/disklrucache:libdisklrucache-src.jar \
24   third_party/java_src/android_libs/glide/third_party/gif_decoder:libgif_decoder.jar \
25   third_party/java_src/android_libs/glide/third_party/gif_decoder:libgif_decoder-src.jar
26
27cp -f blaze-bin/third_party/java_src/android_libs/glide/annotation/libannotation.jar \
28   $TARGET_DIR/com/github/bumptech/glide/annotation/SNAPSHOT/annotation-SNAPSHOT.jar
29cp -f blaze-bin/third_party/java_src/android_libs/glide/annotation/libannotation-src.jar \
30   $TARGET_DIR/com/github/bumptech/glide/annotation/SNAPSHOT/annotation-SNAPSHOT-sources.jar
31cp -f blaze-bin/third_party/java_src/android_libs/glide/annotation/compiler/libcompiler_lib.jar \
32   $TARGET_DIR/com/github/bumptech/glide/compiler/SNAPSHOT/compiler-SNAPSHOT.jar
33cp -f blaze-bin/third_party/java_src/android_libs/glide/annotation/compiler/libcompiler_lib-src.jar \
34   $TARGET_DIR/com/github/bumptech/glide/compiler/SNAPSHOT/compiler-SNAPSHOT-sources.jar
35cp -f blaze-bin/third_party/java_src/android_libs/glide/integration/recyclerview/librecyclerview.jar \
36   $TARGET_DIR/com/github/bumptech/glide/integration/recyclerview/SNAPSHOT/recyclerview-SNAPSHOT.jar
37cp -f blaze-bin/third_party/java_src/android_libs/glide/integration/recyclerview/librecyclerview-src.jar \
38   $TARGET_DIR/com/github/bumptech/glide/integration/recyclerview/SNAPSHOT/recyclerview-SNAPSHOT-sources.jar
39cp -f blaze-bin/third_party/java_src/android_libs/glide/library/src/main/libglide.jar \
40   $TARGET_DIR/com/github/bumptech/glide/glide/SNAPSHOT/glide-SNAPSHOT.jar
41cp -f blaze-bin/third_party/java_src/android_libs/glide/library/src/main/libglide-src.jar \
42   $TARGET_DIR/com/github/bumptech/glide/glide/SNAPSHOT/glide-SNAPSHOT-sources.jar
43cp -f blaze-bin/third_party/java_src/android_libs/glide/third_party/disklrucache/libdisklrucache.jar \
44   $TARGET_DIR/com/github/bumptech/glide/disklrucache/SNAPSHOT/disklrucache-SNAPSHOT.jar
45cp -f blaze-bin/third_party/java_src/android_libs/glide/third_party/disklrucache/libdisklrucache-src.jar \
46   $TARGET_DIR/com/github/bumptech/glide/disklrucache/SNAPSHOT/disklrucache-SNAPSHOT-sources.jar
47cp -f blaze-bin/third_party/java_src/android_libs/glide/third_party/gif_decoder/libgif_decoder.jar \
48   $TARGET_DIR/com/github/bumptech/glide/gifdecoder/SNAPSHOT/gifdecoder-SNAPSHOT.jar
49cp -f blaze-bin/third_party/java_src/android_libs/glide/third_party/gif_decoder/libgif_decoder-src.jar \
50   $TARGET_DIR/com/github/bumptech/glide/gifdecoder/SNAPSHOT/gifdecoder-SNAPSHOT-sources.jar
51
52echo "This maven repository was synced to google3 CL $SYNCED_CL" > $TARGET_DIR/README.txt
53popd
54