Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions tools/rapids-datetime-string
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
#
# rapids-datetime-string
#
# Ensure the expected date-time environment variables used in
# package building are set.
#
# Example usage:
#
# source rapids-datetime-string
#
if [ "${CI:-false}" = "false" ]; then
# for local builds, just compute right here
RAPIDS_DATETIME_STRING="$(date -u +'%y%m%d%H%M%S')"
export RAPIDS_DATETIME_STRING
else
if [ -z "${RAPIDS_DATETIME_STRING:-}" ]; then
rapids-echo-stderr "Expected environment variable 'RAPIDS_DATETIME_STRING' to be set and non-empty."
exit 1
fi
fi
Loading