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" && \