From f2bb3d60068fae03df6a530afecb7a4c2e2ef3ab Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 7 Oct 2017 12:27:33 +0200 Subject: use temporary file and mv to replace feh binary in case it is currently running --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5d369bc..3540679 100644 --- a/Makefile +++ b/Makefile @@ -58,7 +58,8 @@ install-doc: install-bin: @echo installing executables to ${bin_dir} @mkdir -p ${bin_dir} - @cp src/feh ${bin_dir} + @cp src/feh ${bin_dir}/feh.tmp + @mv ${bin_dir}/feh.tmp ${bin_dir}/feh @chmod 755 ${bin_dir}/feh install-font: -- cgit v1.2.3