summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-06-26 11:37:06 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-06-26 11:37:06 -0700
commit5178a3d2da844057151c7984f35b90ba60fa123a (patch)
tree58e09af3643c77fb27056c0064e71f9d95291ad1
parent106927eae4983cc28a699745eac305f1e48d890a (diff)
parentece4e65299eb1fbf15b0cc30cba6eadd6798569b (diff)
downloaddevice_common-5178a3d2da844057151c7984f35b90ba60fa123a.zip
device_common-5178a3d2da844057151c7984f35b90ba60fa123a.tar.gz
device_common-5178a3d2da844057151c7984f35b90ba60fa123a.tar.bz2
am ece4e652: am 1dedf148: Generate output even in case of error
* commit 'ece4e65299eb1fbf15b0cc30cba6eadd6798569b': Generate output even in case of error
-rwxr-xr-xgenerate-blob-lists.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/generate-blob-lists.sh b/generate-blob-lists.sh
index 9d58210..a59eed3 100755
--- a/generate-blob-lists.sh
+++ b/generate-blob-lists.sh
@@ -80,9 +80,9 @@ fi
for DEVICENAME in $DEVICES
do
+ MANUFACTURERNAME=$( find device -type d | grep [^/]\*/[^/]\*/$DEVICENAME\$ | cut -f 2 -d / )
if test $(wc -l < $ARCHIVEDIR/$DEVICENAME-without.txt) != 0 -a $(wc -l < $ARCHIVEDIR/$DEVICENAME-with.txt) != 0
then
- MANUFACTURERNAME=$( find device -type d | grep [^/]\*/[^/]\*/$DEVICENAME\$ | cut -f 2 -d / )
(
echo '# Copyright (C) 2011 The Android Open Source Project'
echo '#'
@@ -117,6 +117,16 @@ do
git push ssh://$1:29418/device/$MANUFACTURERNAME/$DEVICENAME.git HEAD:refs/for/$2/autoblobs
fi
)
+ else
+ (
+ cd device/$MANUFACTURERNAME/$DEVICENAME
+ git commit --allow-empty -m "$(echo -e 'DO NOT SUBMIT - BROKEN BUILD\n\nBug: 4295425')"
+ if test "$1" != "" -a "$2" != ""
+ then
+ echo uploading to server $1 branch $2
+ git push ssh://$1:29418/device/$MANUFACTURERNAME/$DEVICENAME.git HEAD:refs/for/$2/autoblobs
+ fi
+ )
fi
done