]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add a check to see if gen-version still is up-to-date 15076/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 4 Feb 2025 11:37:21 +0000 (12:37 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 4 Feb 2025 11:50:00 +0000 (12:50 +0100)
pdns/recursordist/meson-dist-script.sh

index a8699d94dd02e0f2195391475838a6fa987c3b92..b972994dad2b2b2b7f98a9c529db03e6473454cb 100755 (executable)
@@ -10,6 +10,10 @@ 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"