Skip to content

Commit

Permalink
Add a target to generate tarball
Browse files Browse the repository at this point in the history
We use git-archive-all as we also want to bundle submodules

And rename files with spaces

Differential Revision: https://phabricator.freedesktop.org/D1162
  • Loading branch information
tsaunier committed Jul 15, 2016
1 parent f4542ba commit 3ddc667
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
3 changes: 3 additions & 0 deletions configure
Expand Up @@ -65,6 +65,9 @@ install:
check:
cd $BUILDDIR && $NINJA test
dist:
cd $BUILDDIR && $NINJA dist
clean:
rm -Rf $BUILDDIR
rm Makefile
Expand Down
2 changes: 1 addition & 1 deletion data/pixmaps/transitions/misc-diagonal-dbd.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions meson.build
Expand Up @@ -61,3 +61,13 @@ if not get_option('disable-help')
subdir('help')
endif
subdir('tests')

archiver = find_program('git-archive-all', required : false)
if archiver.found()
run_target('dist', 'git-archive-all', '--prefix=pitivi',
'pitivi-' + meson.project_version() + '.tar.gz')
else
message('git-archive-all not found, you will not be able to run `ninja dist`')
message('Install git-archive-all with pip:')
message(' $ pip install git-archive-all')
endif

0 comments on commit 3ddc667

Please sign in to comment.