libreboot

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit df57ef3af60d0e89a094b4225d5a985f8e8effbb
parent 1eb0d901227b99c8dad56762a20487da93e856cb
Author: Francis Rowe <info@gluglug.org.uk>
Date:   Mon,  8 Jun 2015 01:10:48 +0100

build/release/src: simplify directory reference

Diffstat:
resources/scripts/helpers/build/release/src | 76++++++++++++++++++++++++++++++++++++++--------------------------------------
1 file changed, 38 insertions(+), 38 deletions(-)

diff --git a/resources/scripts/helpers/build/release/src b/resources/scripts/helpers/build/release/src @@ -26,79 +26,79 @@ set -u -e printf 'Building the source release archive\n' version="$(git describe --tags HEAD)" -distdir="libreboot_${version}_src" +distdir="release/libreboot_${version}_src" printf 'Deleting old source release archives\n' -rm -f "release/${distdir}.tar.xz" -rm -Rf "release/${distdir}" +rm -f "${distdir}.tar.xz" +rm -Rf "${distdir}" -mkdir -p "release/${distdir}/" +mkdir -p "${distdir}/" -printf 'Copying sources to %s/\n' "release/${distdir}" +printf 'Copying sources to %s/\n' "${distdir}" for resource in *; do case "${resource}" in libreboot_* | release | tobuild* | docs);; - *) cp -R "${resource}" "release/${distdir}/";; + *) cp -R "${resource}" "${distdir}/";; esac done -printf '%s\n' "${version}" >"release/${distdir}/version" +printf '%s\n' "${version}" >"${distdir}/version" -printf 'Cleaning files in %s/\n' "release/${distdir}" +printf 'Cleaning files in %s/\n' "${distdir}" # Clean old builds. -(cd "release/${distdir}/" && ./build clean all) +(cd "${distdir}/" && ./build clean all) printf '\n' # Delete Git repositories and properties and Subversion administrative # directories and properties. -rm -Rf "release/${distdir}/bucts/".git* -rm -Rf "release/${distdir}/flashrom/".svn* -rm -Rf "release/${distdir}/grub/".git* +rm -Rf "${distdir}/bucts/".git* +rm -Rf "${distdir}/flashrom/".svn* +rm -Rf "${distdir}/grub/".git* # Delete useless files. -rm -Rf "release/${distdir}/TODO/" -rm -f "release/${distdir}/push" +rm -Rf "${distdir}/TODO/" +rm -f "${distdir}/push" # Delete the deblob scripts. # Since the source archive doesn't distribute the download scripts and already # comes with a deblobbed coreboot, the deblobbing scripts aren't needed at all. -rm -Rf "release/${distdir}/resources/utilities/coreboot-libre/" +rm -Rf "${distdir}/resources/utilities/coreboot-libre/" # We don't want to encourage development to happen on the release archives. # Development goes in Git. These scripts are not needed in the source archive, # because the files that they download are already included and trimmed. -rm -Rf "release/${distdir}/resources/scripts/helpers/build/release/" -rm -f "release/${distdir}/download" -rm -Rf "release/${distdir}/resources/scripts/helpers/download/" -rm -Rf "release/${distdir}/resources/scripts/helpers/build/trim/" +rm -Rf "${distdir}/resources/scripts/helpers/build/release/" +rm -f "${distdir}/download" +rm -Rf "${distdir}/resources/scripts/helpers/download/" +rm -Rf "${distdir}/resources/scripts/helpers/build/trim/" # Patches are not needed, because they are already applied to coreboot sources. -rm -Rf "release/${distdir}/resources/libreboot/patch/" +rm -Rf "${distdir}/resources/libreboot/patch/" # coreboot's crossgcc archives are distributed separately. -rm -Rf "release/${distdir}/coreboot/util/crossgcc/tarballs/" +rm -Rf "${distdir}/coreboot/util/crossgcc/tarballs/" # ich9deblob: There are certain files in there that the user most likely does # not want to share. -rm -f "release/${distdir}/resources/utilities/ich9deblob/deblobbed_descriptor.bin" -rm -f "release/${distdir}/resources/utilities/ich9deblob/factory.rom" -rm -f "release/${distdir}/resources/utilities/ich9deblob/libreboot.rom" -rm -f "release/${distdir}/resources/utilities/ich9deblob/mkdescriptor.c" -rm -f "release/${distdir}/resources/utilities/ich9deblob/mkdescriptor.h" -rm -f "release/${distdir}/resources/utilities/ich9deblob/mkgbe.c" -rm -f "release/${distdir}/resources/utilities/ich9deblob/mkgbe.h" -rm -f "release/${distdir}/resources/utilities/ich9deblob/ich9fdgbe_4m.bin" -rm -f "release/${distdir}/resources/utilities/ich9deblob/ich9fdgbe_8m.bin" -rm -f "release/${distdir}/resources/utilities/ich9deblob/demefactory_4kdescriptor.bin" -rm -f "release/${distdir}/mkgbe.c" -rm -f "release/${distdir}/mkgbe.h" -rm -f "release/${distdir}/ich9fdgbe_8m.bin" -rm -f "release/${distdir}/ich9fdgbe_4m.bin" - -printf 'Creating %s.tar.xz\n' "release/${distdir}" +rm -f "${distdir}/resources/utilities/ich9deblob/deblobbed_descriptor.bin" +rm -f "${distdir}/resources/utilities/ich9deblob/factory.rom" +rm -f "${distdir}/resources/utilities/ich9deblob/libreboot.rom" +rm -f "${distdir}/resources/utilities/ich9deblob/mkdescriptor.c" +rm -f "${distdir}/resources/utilities/ich9deblob/mkdescriptor.h" +rm -f "${distdir}/resources/utilities/ich9deblob/mkgbe.c" +rm -f "${distdir}/resources/utilities/ich9deblob/mkgbe.h" +rm -f "${distdir}/resources/utilities/ich9deblob/ich9fdgbe_4m.bin" +rm -f "${distdir}/resources/utilities/ich9deblob/ich9fdgbe_8m.bin" +rm -f "${distdir}/resources/utilities/ich9deblob/demefactory_4kdescriptor.bin" +rm -f "${distdir}/mkgbe.c" +rm -f "${distdir}/mkgbe.h" +rm -f "${distdir}/ich9fdgbe_8m.bin" +rm -f "${distdir}/ich9fdgbe_4m.bin" + +printf 'Creating %s.tar.xz\n' "${distdir}" (cd release/ && tar -c "${distdir}/" | xz -9e >"${distdir}.tar.xz") -rm -Rf "release/${distdir}/" +rm -Rf "${distdir}/" printf 'Source release archives are stored in release/\n'