[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Cleaning a directory before install
From: Stephan Kulow <coolo () kde ! org>
Date: 2003-05-27 8:37:22
[Download RAW message or body]
On Wednesday 28 May 2003 07:23, Andras Mantia wrote:
> Hi,
>
> I would like to ask an auto* guru: is there an easy possibility to clean up
> the target install directory just before installing the new files? The user
> should type simply "make install" and the old files should be removed and the
> new ones installed.
Hmm, no simple way no. And you really shouldn't bother too much with it anyway
in the hope people use package managers :)
But if you want a way (assuming you have something like data files that you parse
as *):
install-data-hook:
cd $(DESTDIR)$(mydatadir) ;\
for file in *; do \
if ! echo " $(mydata_DATA) " | grep -q " $$file "; then \
echo rm $(DESTDIR)$(mydatadir)/$$file ;\
rm $$file ;\\
fi ;\
done
you see: you don't really want that. You should prefer marking your data with a version
and ignore in the program those of an older version.
Greetings, Stephan
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic