[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Cleaning a directory before install
From:       Andras Mantia <amantia () freemail ! hu>
Date:       2003-05-28 6:34:01
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 2003 May 27 11:37, Stephan Kulow wrote:
> 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.

Well, yes, in this case I think itás better to do versioning.

Thanks,
Andras

>
> Greetings, Stephan

- -- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+1FhdTQdfac6L/08RAlzdAJ9FQmxi8GyXnGMeyNJXeQWZ31S1yACghG0x
3Lq5uR8BLKrLFYk4+7PAp20=
=Md6O
-----END PGP SIGNATURE-----
 
>> 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