aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-15 21:23:02 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-15 21:23:02 -0400
commit6595bdd04a25eb2cebd3515b4e3b5ea782f674a1 (patch)
tree3e471870d339aa5d05d5af812b65be531004d5a2
parent6b5a9d65e3088f04d3bbdf0a8de8fb81d8453ed9 (diff)
Use 'install' to preserve file modification times
-rw-r--r--tomo.c2
1 files changed, 1 insertions, 1 deletions
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));
}