summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-10-07 12:27:33 +0200
committerDaniel Friesel <derf@finalrewind.org>2017-10-07 12:27:33 +0200
commitf2bb3d60068fae03df6a530afecb7a4c2e2ef3ab (patch)
treec851ad24987330c2f4564c1e71a9a1ef701a9f5d /Makefile
parent528616b3df854b3bfad30c2364bf2aaf000e3a6d (diff)
use temporary file and mv to replace feh binary in case it is currently running
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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: