Skip to content

Commit

Permalink
Add a check to see if gen-version still is up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
omoerbeek committed Feb 4, 2025
1 parent 6f2c896 commit 464ae07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pdns/recursordist/meson-dist-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ cd "$MESON_PROJECT_DIST_ROOT"
# Get all symlinks
symlinks=$(find . -type l)

# If these two get out-of-sync, fix it! It used to be a symlink but that can no longer be as we are
# working with a partial checkout in the dist root dir.
cmp "$MESON_SOURCE_ROOT"/builder-support/gen-version "$MESON_PROJECT_DIST_ROOT"/builder-support/gen-version

# Get the dereffed symbolic links (the actual files being pointed to) from the source dir
# Extract them over the existing symbolic links
tar -C "$MESON_SOURCE_ROOT" -hcf - $symlinks | tar -xf - -C "$MESON_PROJECT_DIST_ROOT"
tar -C "$MESON_SOURCE_ROOT" -Hcf - $symlinks | tar -xf - -C "$MESON_PROJECT_DIST_ROOT"

# Run autoconf for people using autotools to build, this creates a configure script with VERSION set
echo Running autoreconf -vi so distfile is still usable for autotools building
Expand Down

0 comments on commit 464ae07

Please sign in to comment.