From 926ffa53e2034f867034bfe0aa771a502bfc1391 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 7 Jun 2015 07:00:15 +0100 Subject: build/release/docs: copy straight to release/ --- resources/scripts/helpers/build/release/docs | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'resources/scripts/helpers/build') diff --git a/resources/scripts/helpers/build/release/docs b/resources/scripts/helpers/build/release/docs index a57f8aa5..e07cd326 100755 --- a/resources/scripts/helpers/build/release/docs +++ b/resources/scripts/helpers/build/release/docs @@ -31,23 +31,20 @@ else distdir='libreboot_docs' fi +[ -d release/ ] || mkdir release/ + printf 'Deleting old documentation release archives\n' -rm -f "${distdir}.tar.xz" rm -f "release/${distdir}.tar.xz" -rm -Rf "${distdir}/" +rm -Rf "release/${distdir}/" -printf 'Copying documentation to %s/\n' "${distdir}" -cp -R docs/ "${distdir}/" +printf 'Copying documentation to %s/\n' "release/${distdir}" +cp -R docs/ "release/${distdir}/" -printf '%s\n' "${version}" >"${distdir}/version" +printf '%s\n' "${version}" >"release/${distdir}/version" -printf 'Creating %s.tar.xz\n' "${distdir}" -tar -c "${distdir}/" | xz -9e >"${distdir}.tar.xz" - -# Move the archives to the release/ directory. -[ -d release/ ] || mkdir release/ -mv "${distdir}.tar.xz" release/ +printf 'Creating %s.tar.xz\n' "release/${distdir}" +tar -c "release/${distdir}/" | xz -9e >"release/${distdir}.tar.xz" -rm -Rf "${distdir}/" +rm -Rf "release/${distdir}/" printf 'Documentation release archives are stored in release/\n' -- cgit v1.2.3-70-g09d2