Move releases from releases/<git describe> to releases.

This can simplify the overal structure of GNU Boot as we don't need to
compute some git tag everytime in the code.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Acked-by: Adrien 'neox' Bourmault <neox@gnu.org>
This commit is contained in:
Denis 'GNUtoo' Carikli 2023-12-01 17:18:12 +01:00 committed by Adrien 'neox' Bourmault
parent 6c51d58af3
commit fd9986da0b
Signed by: neox
GPG Key ID: 2974E1D5F25DFCC8
2 changed files with 8 additions and 10 deletions

View File

@ -42,12 +42,10 @@ fi
[ ! -d "release/" ] && \ [ ! -d "release/" ] && \
mkdir -p release/ mkdir -p release/
[ ! -d "release/${version}/" ] && \ [ -d "release/roms/" ] && \
mkdir -p "release/${version}/" rm -Rf "release/roms/"
[ -d "release/${version}/roms/" ] && \ [ ! -d "release/roms/" ] && \
rm -Rf "release/${version}/roms/" mkdir -p "release/roms/"
[ ! -d "release/${version}/roms/" ] && \
mkdir -p "release/${version}/roms/"
printf "Building ROM image archives for version %s\n" "${version}" printf "Building ROM image archives for version %s\n" "${version}"
@ -58,13 +56,13 @@ printf "Building ROM image archives for version %s\n" "${version}"
continue continue
fi fi
printf "Generating release/%s/roms/%s-%s_%s.tar.xz\n" "${version}" "${projectname}" "${version}" "${target##*/}" printf "Generating release/roms/%s-%s_%s.tar.xz\n" "${projectname}" "${version}" "${target##*/}"
printf "%s\n" "${version}" > "${target}/version" printf "%s\n" "${version}" > "${target}/version"
printf "%s\n" "${versiondate}" > "${target}/versiondate" printf "%s\n" "${versiondate}" > "${target}/versiondate"
printf "%s\n" "${projectname}" > "${target}/projectname" printf "%s\n" "${projectname}" > "${target}/projectname"
tar -c "${target}/" | xz -9e >"../release/${version}/roms/${projectname}-${version}_${target##*/}.tar.xz" tar -c "${target}/" | xz -9e >"../release/roms/${projectname}-${version}_${target##*/}.tar.xz"
done done
) )
printf "\nROM image release archives available at release/%s/roms/\n\n" "${version}" printf "\nROM image release archives available at release/roms/\n\n"

View File

@ -36,7 +36,7 @@ if [ -f versiondate ]; then
versiondate="$(cat versiondate)" versiondate="$(cat versiondate)"
fi fi
reldir="release/${version}" reldir="release/"
dirname="${projectname}-${version}_src" dirname="${projectname}-${version}_src"
srcdir="${reldir}/${dirname}" srcdir="${reldir}/${dirname}"