about summary refs log tree commit diff stats
path: root/common
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-04 12:01:42 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-04 12:01:42 +0200
commitb94683184c326c02c00673f6b9e6e3acc647535f (patch)
tree728ec0867bd13eb3513e45df560bbe2be2e46feb /common
parentfix(templates/latex/academia/lpm.toml): Use correct LaTeX in lpm figure template (diff)
downloadflake-templates-b94683184c326c02c00673f6b9e6e3acc647535f.tar.gz
flake-templates-b94683184c326c02c00673f6b9e6e3acc647535f.zip
feat(common/init): Safe the %INIT_ variables for later use
Diffstat (limited to 'common')
-rw-r--r--common/init2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/init b/common/init
index 9ee0462..e8f72c8 100644
--- a/common/init
+++ b/common/init
@@ -182,6 +182,8 @@ reuse="$(nix build nixpkgs#reuse.out --no-link --print-out-paths)/bin/reuse"
 
 git add .
 
+cp "$replacement_file" ".git/init_variables_$(date --iso-8601=date)"
+
 git diff --name-only --cached |
     xargs -I {} "$reuse" annotate \
         --copyright "$AUTHOR_NAME <$AUTHOR_EMAIL>" \