When installing, first remove a target then do 'cp'. If not so, programs with .so plugins would

crash when .so file was updated and program is running.
This commit is contained in:
Sanel Zukan 2009-10-05 09:45:21 +00:00
parent f7466bed21
commit 531ef0809e

View File

@ -161,8 +161,11 @@ rule InstallDbusService
InstallData $(DBUS_SERVICE_DIR) : $(1) ; InstallData $(DBUS_SERVICE_DIR) : $(1) ;
} }
# make sure the file was deleted first; if not, some re-installed objects (e.g. plugins)
# will cause app to crash
actions Install1 actions Install1
{ {
$(RM) "$(<)"
$(CP) "$(>)" "$(<)" $(CP) "$(>)" "$(<)"
} }