Skip to content

Commit

Permalink
meson: create full dist tarball with autoconf artifacts included
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-schwartz committed Dec 17, 2023
1 parent 9915ba3 commit 63c6de5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#!/bin/sh

# ensure m4 dir exists
# if running from `meson dist`, make sure we run from the dist root
if [ -n "$MESON_PROJECT_DIST_ROOT" ]; then
cd "$MESON_PROJECT_DIST_ROOT"
# meson < 0.58
elif [ -n "$MESON_DIST_ROOT" ]; then
cd "$MESON_DIST_ROOT"
fi

# ensure m4 dir exists
mkdir -p m4
# ensure build-aux exists
mkdir -p build-aux
Expand Down
2 changes: 2 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ import('pkgconfig').generate(
name: 'Erfa',
description: 'Essential Routines for Fundamental Astronomy',
)

meson.add_dist_script('./bootstrap.sh')

0 comments on commit 63c6de5

Please sign in to comment.