~milo/linaro-license-protection/bug1183747

« back to all changes in this revision

Viewing changes to scripts/refresh-www

  • Committer: Danilo Segan
  • Date: 2012-01-09 12:10:57 UTC
  • Revision ID: danilo@canonical.com-20120109121057-n2x13c5oznttjr1j
Add uncommitted stuff: licenses/nolicense.html and scripts/refresh-www.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
BASE_PATH=/home/android-build-linaro/android/.tmp
 
3
TARGET_PATH=/srv3/snapshots.linaro.org/www/android/
 
4
for dir in `ls $BASE_PATH`; do
 
5
  if [ -d $BASE_PATH/$dir ]; then
 
6
    username=`echo "$dir" | cut -d_ -f1`
 
7
    buildname=`echo "$dir" | cut -d_ -f2-`
 
8
    echo -n "Moving $BASE_PATH/$dir to $TARGET_PATH/\~$username/$buildname... " &&
 
9
    (mkdir -p $TARGET_PATH/\~$username/$buildname && \
 
10
     mv $BASE_PATH/"$dir"/* $TARGET_PATH/"~$username"/"$buildname"/ && \
 
11
     rmdir $BASE_PATH/"$dir" && \
 
12
     echo "done")
 
13
  fi
 
14
done