OSDN Git Service

Force sort order to 'C'
[android-x86/device-common.git] / generate-blob-scripts.sh
index 61f971a..7e418f7 100755 (executable)
@@ -16,7 +16,7 @@
 
 # This script auto-generates the scripts that manage the handling of the
 # proprietary blobs necessary to build the Android Open-Source Project code
-# for passion and crespo targets
+# for a variety of hardware targets
 
 # It needs to be run from the root of a source tree that can repo sync,
 # runs builds with and without the vendor tree, and uses the difference
@@ -43,7 +43,8 @@ then
 fi
 shift
 
-DEVICES="crespo crespo4g stingray wingray tuna toro panda"
+DEVICES="crespo crespo4g stingray panda toro maguro"
+export LC_ALL=C
 
 repo sync
 repo sync
@@ -119,7 +120,7 @@ do
         else
           echo unzip -j -o ../../../\${DEVICE}_update.zip $(echo $FULLPATH | cut -b 2-) -d ../../../vendor/\$MANUFACTURER/\$DEVICE/proprietary
         fi
-        if test $(basename $FULLPATH) = akmd -o $(basename $FULLPATH) = mm-venc-omx-test -o $(basename $FULLPATH) = parse_radio_log -o $(basename $FULLPATH) = akmd8973 -o $(basename $FULLPATH) = gpsd -o $(basename $FULLPATH) = pvrsrvinit
+        if test $(basename $FULLPATH) = akmd -o $(basename $FULLPATH) = mm-venc-omx-test -o $(basename $FULLPATH) = parse_radio_log -o $(basename $FULLPATH) = akmd8973 -o $(basename $FULLPATH) = gpsd -o $(basename $FULLPATH) = pvrsrvinit -o $(basename $FULLPATH) = fRom
         then
           echo chmod 755 ../../../vendor/\$MANUFACTURER/\$DEVICE/proprietary/$(basename $FULLPATH)
         fi
@@ -214,8 +215,11 @@ do
       done
     echo
 
+    echo
     echo 'EOF'
 
+    echo
+
     echo -n '(cat << EOF) | sed s/__DEVICE__/$DEVICE/g | sed s/__MANUFACTURER__/$MANUFACTURER/g > ../../../vendor/$MANUFACTURER/$DEVICE/'
     echo 'proprietary/Android.mk'
 
@@ -284,11 +288,11 @@ do
   (
     cd device/$MANUFACTURERNAME/$DEVICENAME
     git add .
-    git commit -m "auto-generated blob-handling scripts"
+    git commit -m "$(echo -e 'auto-generated blob-handling scripts\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
+      git push ssh://$1:29418/device/$MANUFACTURERNAME/$DEVICENAME.git HEAD:refs/for/$2/autoblobs
     fi
   )