Skip to content

Commit

Permalink
Use PRODUCT_PREFIX in output file names
Browse files Browse the repository at this point in the history
  • Loading branch information
petefoth committed Jan 1, 2025
1 parent d5d73e3 commit 400d3c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/new_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ for codename in ${devices//,/ }; do
logsubdir=
fi

# Set device specific logfils
DEBUG_LOG="$LOGS_DIR/$logsubdir/$branch-$builddate-$RELEASE_TYPE-$codename.log"
# Set device specific logfile
DEBUG_LOG="$LOGS_DIR/$logsubdir/$PRODUCT_PREFIX-$los_ver-$builddate-$RELEASE_TYPE-$codename.log"
## Pick up TheMuppets manifest if required
rm -f .repo/local_manifests/proprietary.xml
if [ "$INCLUDE_PROPRIETARY" = true ]; then
Expand Down Expand Up @@ -440,7 +440,7 @@ for codename in ${devices//,/ }; do
# Move the ROM zip files to the main OUT directory
cd out/target/product/"$codename"
files_to_hash=()
for build in lineage-*.zip; do
for build in "$PRODUCT_PREFIX"-*.zip; do
cp -v system/build.prop "$ZIP_DIR/$zipsubdir/$build.prop" &>> "$DEBUG_LOG"
mv "$build" "$ZIP_DIR/$zipsubdir/" &>> "$DEBUG_LOG"
files_to_hash+=( "$build" )
Expand All @@ -455,7 +455,7 @@ for codename in ${devices//,/ }; do
# rename and copy the images to the zips directory
for image in recovery boot vendor_boot dtbo super_empty vbmeta vendor_kernel_boot init_boot; do
if [ -f "$image.img" ]; then
recovery_name="lineage-$los_ver-$builddate-$RELEASE_TYPE-$codename-$image.img"
recovery_name="$PRODUCT_PREFIX-$los_ver-$builddate-$RELEASE_TYPE-$codename-$image.img"
echo ">> [$(date)] Copying $image.img" to "$ZIP_DIR/$zipsubdir/$recovery_name" >> "$DEBUG_LOG"
cp "$image.img" "$ZIP_DIR/$zipsubdir/$recovery_name" &>> "$DEBUG_LOG"
files_to_hash+=( "$recovery_name" )
Expand Down

0 comments on commit 400d3c7

Please sign in to comment.