Skip to content

Commit

Permalink
Adds sourceable scriptlet for setting rattler-build env vars (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
gforsyth authored Feb 4, 2025
1 parent 9a685ba commit 5e2ae24
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tools/rapids-configure-rattler
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
# A utility script that sets variables needed for `rattler-build`

# We only want the last two (of three) entries from splitting the `git describe` output on `-`
# so we purposefully overwrite `GIT_DESCRIBE_NUMBER` to avoid setting an unwanted variable

# shellcheck disable=SC2034
IFS=- read -r GIT_DESCRIBE_NUMBER GIT_DESCRIBE_NUMBER GIT_DESCRIBE_HASH <<< "$(git describe --tags)"
export GIT_DESCRIBE_NUMBER
export GIT_DESCRIBE_HASH

0 comments on commit 5e2ae24

Please sign in to comment.