]> birchwood-abbey.net Git - mit-scheme.git/commitdiff
Tweak mtimes of source files if git-restore-mtime available.
authorChris Hanson <org/chris-hanson/cph>
Mon, 12 Dec 2022 10:03:25 +0000 (02:03 -0800)
committerChris Hanson <org/chris-hanson/cph>
Mon, 12 Dec 2022 10:03:25 +0000 (02:03 -0800)
dist/make-src-files

index f94f9f133498b7c93f5cd4ca80c18cbb3cca94e2..e98b05fade1ebab062b67719cadf8809abd06e2b 100755 (executable)
@@ -47,6 +47,9 @@ GIT_REPO=https://git.savannah.gnu.org/git/"${PROJECT_NAME}".git
 
 notify "Cloning the source tree"
 run_command "${SRC_OUT}"-clone . git clone -b "${GIT_BRANCH}" "${GIT_REPO}"
+if [[ -x /usr/lib/git-core/git-restore-mtime ]]; then
+    run_command "${SRC_OUT}"-mtime "${PROJECT_NAME}" git restore-mtime
+fi
 cleanup_file "${PROJECT_NAME}"
 
 generate_changelog ()