paivana

HTTP paywall reverse proxy
Log | Files | Refs | Submodules | README | LICENSE

meson-dist-script (401B)


      1 #!/bin/sh
      2 # Ship a .version in the tarball, so that a build from it does not need
      3 # git.  A checkout without reachable tags has no .version to copy, so
      4 # fall back to the version meson resolved for this dist run.
      5 set -eu
      6 
      7 if [ -f "$MESON_SOURCE_ROOT/.version" ]; then
      8   cp "$MESON_SOURCE_ROOT/.version" "$MESON_DIST_ROOT/.version"
      9 else
     10   echo "$MESON_PROJECT_VERSION" > "$MESON_DIST_ROOT/.version"
     11 fi