aboutsummaryrefslogtreecommitdiff
path: root/lib/actions/install.bash
diff options
context:
space:
mode:
Diffstat (limited to 'lib/actions/install.bash')
-rw-r--r--lib/actions/install.bash14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/actions/install.bash b/lib/actions/install.bash
index 9e4b010..42c27f5 100644
--- a/lib/actions/install.bash
+++ b/lib/actions/install.bash
@@ -13,7 +13,9 @@ RSTAR_DEPS_PERL+=(
)
action() {
+ local LC_ALL
local OPTIND
+ local SOURCE_DATE_EPOCH
local duration
local init
@@ -28,7 +30,14 @@ action() {
shift $(( OPTIND - 1 ))
- mkdir -p -- "$RSTAR_PREFIX"
+ # Prepare environment for a reproducible install
+ LC_ALL=C.UTF-8
+ SOURCE_DATE_EPOCH="$(git log -1 --pretty=format:%at)"
+
+ debug "SOURCE_DATE_EPOCH set to $SOURCE_DATE_EPOCH"
+
+ export LC_ALL
+ export SOURCE_DATE_EPOCH
# If no specific targets are specified, set all targets
if (( $# < 1 ))
@@ -40,6 +49,9 @@ action() {
# on
init="$(date +%s)"
+ # Create the installation directory
+ mkdir -p -- "$RSTAR_PREFIX"
+
# Run each installation target
for target in "$@"
do