Before deleting .git, determine the version and save it in .version file. Cc: Gerd Hoffmann <kra...@redhat.com> Signed-off-by: Andreas Färber <afaer...@suse.de> --- scripts/make-release | 1 + 1 file changed, 1 insertion(+)
diff --git a/scripts/make-release b/scripts/make-release index 186358d..fa6323f 100755 --- a/scripts/make-release +++ b/scripts/make-release @@ -18,6 +18,7 @@ git clone "${src}" ${destination} pushd ${destination} git checkout "v${version}" git submodule update --init +(cd roms/seabios && git describe --tags --long --dirty > .version) rm -rf .git roms/*/.git dtc/.git pixman/.git popd tar cfj ${destination}.tar.bz2 ${destination} -- 1.8.4.5