Commit ba017937 authored by Adrien Plazas's avatar Adrien Plazas

tools: Add make-tarball.sh

Add a script for generating release tarball using 'git archive'.
parent 4e937fd9
flatpak export-ignore
tools export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
......
#!/bin/bash
# A replacement for `ninja dist` until it can exclude `flatpak` and `tools` directories.
PROJECT=retro-gtk
VERSION=$(grep -Pom1 "version:\s+'\K[\w.]+" ../meson.build)
cd ..
git archive --prefix $PROJECT-$VERSION/ -o tools/$PROJECT-$VERSION.tar HEAD .
xz -f tools/$PROJECT-$VERSION.tar
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