Merge "tools: Fix for $LOGNAME missing in Ubuntu 11.10, using $USER instead" into gingerbread
This commit is contained in:
commit
931d02ae3b
@ -6,7 +6,7 @@ mkdir -p "$LOC"/temp
|
||||
|
||||
cd "$LOC"/temp
|
||||
echo "extract update.zip"
|
||||
unzip -o -qq "$LOC"/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$LOGNAME.zip
|
||||
unzip -o -qq "$LOC"/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$USER.zip
|
||||
|
||||
echo "Making Leo Compatible Update script"
|
||||
cd "$LOC"
|
||||
@ -22,8 +22,8 @@ cd "$LOC"/temp
|
||||
rm -rf "$LOC"/temp/boot.img
|
||||
rm -rf "$LOC"/temp/boot
|
||||
cp -a "$LOC"/boot "$LOC"/temp/boot
|
||||
rm -rf "$LOC"/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$LOGNAME.zip
|
||||
zip -9yr "$LOC"/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$LOGNAME.zip * > /dev/null
|
||||
rm -rf "$LOC"/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$USER.zip
|
||||
zip -9yr "$LOC"/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$USER.zip * > /dev/null
|
||||
cd "$LOC"
|
||||
|
||||
echo Cleanup...
|
||||
|
@ -25,7 +25,7 @@ TMPDIR=/tmp/opticharge-$$
|
||||
|
||||
if [ "$APKCERTS" = "" ];
|
||||
then
|
||||
APKCERTS=$OUT/obj/PACKAGING/target_files_intermediates/$TARGET_PRODUCT-target_files-$TARGET_BUILD_VARIANT.$LOGNAME/META/apkcerts.txt
|
||||
APKCERTS=$OUT/obj/PACKAGING/target_files_intermediates/$TARGET_PRODUCT-target_files-$TARGET_BUILD_VARIANT.$USER/META/apkcerts.txt
|
||||
if [ ! -f "$APKCERTS" ];
|
||||
then
|
||||
echo "Set APKCERTS to the path to your apkcerts.txt file"
|
||||
|
@ -24,9 +24,9 @@ if [ -z "$OUT" -o ! -d "$OUT" ]; then
|
||||
fi
|
||||
|
||||
if [ "$TARGET_BUILD_TYPE" = "debug" ]; then
|
||||
OTAPACKAGE=$OUT/${TARGET_PRODUCT}_debug-ota-$TARGET_BUILD_VARIANT.$LOGNAME.zip
|
||||
OTAPACKAGE=$OUT/${TARGET_PRODUCT}_debug-ota-$TARGET_BUILD_VARIANT.$USER.zip
|
||||
else
|
||||
OTAPACKAGE=$OUT/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$LOGNAME.zip
|
||||
OTAPACKAGE=$OUT/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$USER.zip
|
||||
fi
|
||||
if [ ! -f "$OTAPACKAGE" ]; then
|
||||
echo "$OTAPACKAGE doesn't exist!";
|
||||
|
Loading…
Reference in New Issue
Block a user