OSDN Git Service

Don't consider odex files.
[android-x86/device-common.git] / generate-blob-scripts.sh
index 320e112..cb5443c 100755 (executable)
@@ -43,7 +43,7 @@ then
 fi
 shift
 
-DEVICES="passion crespo crespo4g"
+DEVICES="crespo crespo4g stingray wingray tuna toro panda"
 
 ARCHIVEDIR=archive-$(date +%s)
 mkdir $ARCHIVEDIR
@@ -51,6 +51,7 @@ mkdir $ARCHIVEDIR
 repo sync
 repo sync
 repo sync
+
 . build/envsetup.sh
 for DEVICENAME in $DEVICES
 do
@@ -102,6 +103,7 @@ do
     echo 'mkdir -p ../../../vendor/$MANUFACTURER/$DEVICE/proprietary'
 
     diff $ARCHIVEDIR/$DEVICENAME-without.txt $ARCHIVEDIR/$DEVICENAME-with.txt |
+      grep -v '\.odex$' |
       grep '>' |
       cut -b 3- |
       while read FULLPATH
@@ -142,6 +144,7 @@ do
 
     FOUND=false
     diff $ARCHIVEDIR/$DEVICENAME-without.txt $ARCHIVEDIR/$DEVICENAME-with.txt |
+      grep -v '\.odex$' |
       grep '>' |
       cut -b 3- |
       while read FULLPATH
@@ -164,6 +167,7 @@ do
 
     FOUND=false
     diff $ARCHIVEDIR/$DEVICENAME-without.txt $ARCHIVEDIR/$DEVICENAME-with.txt |
+      grep -v '\.odex$' |
       grep '>' |
       cut -b 3- |
       while read FULLPATH
@@ -187,6 +191,7 @@ do
 
     ) > $ARCHIVEDIR/$DEVICENAME-$FILESTYLE-files.sh
     cp $ARCHIVEDIR/$DEVICENAME-$FILESTYLE-files.sh device/$MANUFACTURERNAME/$DEVICENAME/$FILESTYLE-files.sh
+    chmod a+x device/$MANUFACTURERNAME/$DEVICENAME/$FILESTYLE-files.sh
   done
 
   (