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/library/src/main:libglide.jar \
     15    third_party/java_src/android_libs/glide/library/src/main:libglide-src.jar \
     16    third_party/java_src/android_libs/glide/third_party/disklrucache:libdisklrucache.jar \
     17    third_party/java_src/android_libs/glide/third_party/disklrucache:libdisklrucache-src.jar \
     18    third_party/java_src/android_libs/glide/third_party/gif_decoder:libgif_decoder.jar \
     19    third_party/java_src/android_libs/glide/third_party/gif_decoder:libgif_decoder-src.jar
     20 
     21 cp -f blaze-bin/third_party/java_src/android_libs/glide/library/src/main/libglide.jar \
     22    $TARGET_DIR/com/github/bumptech/glide/glide/SNAPSHOT/glide-SNAPSHOT.jar
     23 cp -f blaze-bin/third_party/java_src/android_libs/glide/library/src/main/libglide-src.jar \
     24    $TARGET_DIR/com/github/bumptech/glide/glide/SNAPSHOT/glide-SNAPSHOT-sources.jar
     25 cp -f blaze-bin/third_party/java_src/android_libs/glide/third_party/disklrucache/libdisklrucache.jar \
     26    $TARGET_DIR/com/github/bumptech/glide/disklrucache/SNAPSHOT/disklrucache-SNAPSHOT.jar
     27 cp -f blaze-bin/third_party/java_src/android_libs/glide/third_party/disklrucache/libdisklrucache-src.jar \
     28    $TARGET_DIR/com/github/bumptech/glide/disklrucache/SNAPSHOT/disklrucache-SNAPSHOT-sources.jar
     29 cp -f blaze-bin/third_party/java_src/android_libs/glide/third_party/gif_decoder/libgif_decoder.jar \
     30    $TARGET_DIR/com/github/bumptech/glide/gifdecoder/SNAPSHOT/gifdecoder-SNAPSHOT.jar
     31 cp -f blaze-bin/third_party/java_src/android_libs/glide/third_party/gif_decoder/libgif_decoder-src.jar \
     32    $TARGET_DIR/com/github/bumptech/glide/gifdecoder/SNAPSHOT/gifdecoder-SNAPSHOT-sources.jar
     33 
     34 echo "This maven repository was synced to google3 CL $SYNCED_CL" > $TARGET_DIR/README.txt
     35 popd
     36