diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2011-06-10 10:04:50 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2011-06-10 10:21:29 -0700 |
commit | 66247cd7998a175b8f2b78c0ce740d14495a7df7 (patch) | |
tree | ac43515ec960bf6626cdbfc98143b1b2388107fb | |
parent | 74426d8bd16801a796c924afa368691f7b1633cc (diff) | |
download | device_common-66247cd7998a175b8f2b78c0ce740d14495a7df7.zip device_common-66247cd7998a175b8f2b78c0ce740d14495a7df7.tar.gz device_common-66247cd7998a175b8f2b78c0ce740d14495a7df7.tar.bz2 |
Allow to re-use an existing build output
Change-Id: Ia163a17af10b77ae82b7d17f16aa53813f92523a
-rwxr-xr-x | generate-blob-scripts.sh | 51 |
1 files changed, 28 insertions, 23 deletions
diff --git a/generate-blob-scripts.sh b/generate-blob-scripts.sh index 0cd62a8..61f971a 100755 --- a/generate-blob-scripts.sh +++ b/generate-blob-scripts.sh @@ -45,33 +45,38 @@ shift DEVICES="crespo crespo4g stingray wingray tuna toro panda" -ARCHIVEDIR=archive-$(date +%s) -mkdir $ARCHIVEDIR - repo sync repo sync repo sync -. build/envsetup.sh -for DEVICENAME in $DEVICES -do - rm -rf out - lunch full_$DEVICENAME-user - make -j32 - cat out/target/product/$DEVICENAME/installed-files.txt | - cut -b 15- | - sort -f > $ARCHIVEDIR/$DEVICENAME-with.txt -done -rm -rf vendor -for DEVICENAME in $DEVICES -do - rm -rf out - lunch full_$DEVICENAME-user - make -j32 - cat out/target/product/$DEVICENAME/installed-files.txt | - cut -b 15- | - sort -f > $ARCHIVEDIR/$DEVICENAME-without.txt -done +ARCHIVEDIR=archive-$(date +%s) +if test -d archive-ref +then + cp -R archive-ref $ARCHIVEDIR +else + mkdir $ARCHIVEDIR + + . build/envsetup.sh + for DEVICENAME in $DEVICES + do + rm -rf out + lunch full_$DEVICENAME-user + make -j32 + cat out/target/product/$DEVICENAME/installed-files.txt | + cut -b 15- | + sort -f > $ARCHIVEDIR/$DEVICENAME-with.txt + done + rm -rf vendor + for DEVICENAME in $DEVICES + do + rm -rf out + lunch full_$DEVICENAME-user + make -j32 + cat out/target/product/$DEVICENAME/installed-files.txt | + cut -b 15- | + sort -f > $ARCHIVEDIR/$DEVICENAME-without.txt + done +fi for DEVICENAME in $DEVICES do |