Commit eba4abb1 authored by amnesia's avatar amnesia
Browse files

scripts/build: rename .list and .packages files as well as the image itself

parent e2751746
......@@ -47,6 +47,8 @@ for BUILD_TYPE in ${AMNESIA_IMAGES} ; do
. config/chroot # get LH_LANGUAGE
BUILD_BASENAME="amnesia-${AMNESIA_BASE}-${LH_LANGUAGE}-${AMNESIA_VERSION}-${AMNESIA_TODAY}"
BUILD_DEST_FILENAME="${BUILD_BASENAME}.${BUILD_FILENAME_EXT}"
BUILD_MANIFEST="${BUILD_BASENAME}.list"
BUILD_PACKAGES="${BUILD_BASENAME}.packages"
BUILD_LOG="build-${BUILD_BASENAME}.log"
echo "Cleaning binary stage..."
......@@ -59,6 +61,8 @@ for BUILD_TYPE in ${AMNESIA_IMAGES} ; do
if lh build noautoconfig ${@} 2>&1 | tee "${BUILD_LOG}" ; then
echo "Image was successfully created, moving it to ${BUILD_DEST_FILENAME}"
mv -i "${BUILD_FILENAME}.${BUILD_FILENAME_EXT}" "${BUILD_DEST_FILENAME}"
mv -i "${BUILD_FILENAME}.list" "${BUILD_MANIFEST}"
mv -i "${BUILD_FILENAME}.packages" "${BUILD_PACKAGES}"
else
echo "lh build failed." >&2
exit 1
......
The resulting installed packages list should be exported at build-time
to a plain-text file that could be published along with the prebuilt
images / torrent files, so that one can have a look at it without needing
to {download,build} and boot amnesia.
The resulting installed packages list is exported at build-time to
a plain-text file that could be published along with the prebuilt
images / torrent files, so that one can have a look at it without
needing to {download,build} and boot amnesia.
Such a list should be linked from [[features]].
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment