From 6595bdd04a25eb2cebd3515b4e3b5ea782f674a1 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 15 Sep 2024 21:23:02 -0400 Subject: Use 'install' to preserve file modification times --- tomo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tomo.c b/tomo.c index cc291143..18d690b2 100644 --- a/tomo.c +++ b/tomo.c @@ -247,7 +247,7 @@ int build_library(const char *lib_base_name) case '\n': { system(heap_strf("rm -rvf ~/.local/share/tomo/installed/'%s'", lib_base_name)); system(heap_strf("mkdir -p ~/.local/share/tomo/installed/'%s'", lib_base_name)); - system(heap_strf("cp -rv * ~/.local/share/tomo/installed/'%s'", lib_base_name)); + system(heap_strf("install -v * ~/.local/share/tomo/installed/'%s'/", lib_base_name)); system("mkdir -p ~/.local/share/tomo/lib/"); system(heap_strf("ln -fv -s ../installed/'%s'/lib%s.so ~/.local/share/tomo/lib/lib%s.so", lib_base_name, libname, libname)); } -- cgit v1.2.3