summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2010-05-07 07:44:32 -0700
committerJean-Baptiste Queru <jbq@google.com>2010-05-11 11:41:31 -0700
commit420c4d905ede5b4f113d73303b74f3a0e6e1eeca (patch)
tree3f5afa173950a5271b592fe1e32d6ce776bdbae0
parent7d72e78465d11754b864666ad1621c99cc81f1c1 (diff)
downloadcommon-420c4d905ede5b4f113d73303b74f3a0e6e1eeca.tar.gz
Factor the builds into loops
Change-Id: I958a4d1651d4facc3c9ee83f700b338acf1a824a
-rwxr-xr-xgenerate-blob-scripts.sh47
1 files changed, 22 insertions, 25 deletions
diff --git a/generate-blob-scripts.sh b/generate-blob-scripts.sh
index 62e7897..5a193b9 100755
--- a/generate-blob-scripts.sh
+++ b/generate-blob-scripts.sh
@@ -43,40 +43,37 @@ then
fi
shift
+DEVICES="dream passion sapphire"
+
ARCHIVEDIR=archive-$(date +%s)
mkdir $ARCHIVEDIR
repo sync
repo sync
+repo sync
. build/envsetup.sh
-rm -rf out
-lunch full_dream-user
-make -j8
-cat out/target/product/dream/installed-files.txt | cut -b 15- | sort > $ARCHIVEDIR/dream-with.txt
-rm -rf out
-lunch full_sapphire-user
-make -j8
-cat out/target/product/sapphire/installed-files.txt | cut -b 15- | sort > $ARCHIVEDIR/sapphire-with.txt
-rm -rf out
-lunch full_passion-user
-make -j8
-cat out/target/product/passion/installed-files.txt | cut -b 15- | sort > $ARCHIVEDIR/passion-with.txt
+for DEVICENAME in $DEVICES
+do
+ rm -rf out
+ lunch full_$DEVICENAME-user
+ make -j8
+ cat out/target/product/$DEVICENAME/installed-files.txt |
+ cut -b 15- |
+ sort > $ARCHIVEDIR/$DEVICENAME-with.txt
+done
rm -rf vendor
-rm -rf out
-lunch full_dream-user
-make -j8
-cat out/target/product/dream/installed-files.txt | cut -b 15- | sort > $ARCHIVEDIR/dream-without.txt
-rm -rf out
-lunch full_sapphire-user
-make -j8
-cat out/target/product/sapphire/installed-files.txt | cut -b 15- | sort > $ARCHIVEDIR/sapphire-without.txt
-rm -rf out
-lunch full_passion-user
-make -j8
-cat out/target/product/passion/installed-files.txt | cut -b 15- | sort > $ARCHIVEDIR/passion-without.txt
+for DEVICENAME in $DEVICES
+do
+ rm -rf out
+ lunch full_$DEVICENAME-user
+ make -j8
+ cat out/target/product/$DEVICENAME/installed-files.txt |
+ cut -b 15- |
+ sort > $ARCHIVEDIR/$DEVICENAME-without.txt
+done
rm -rf out
-for DEVICENAME in dream passion sapphire
+for DEVICENAME in $DEVICES
do
for FILESTYLE in extract unzip
do