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