Hi,

You can use the sort function if you  are not bothered about the order. because this 
sorts the list and removes the duplicate entries
as well.

regards
bhaskar


                                                                                       
                                           
                    Maciej Walezak                                                     
                                           
                    <maciej.walezak@lido           To:  [EMAIL PROTECTED]              
                                           
                    -tech.net>                     cc:  (bcc: Bhaskar 
G/BTC/SC/PHILIPS)                                           
                    Sent by:                       Subject:  unique list               
                                           
                    help-make-admin@gnu.                                               
                                           
                    org                            Classification:                     
                                           
                                                                                       
                                           
                                                                                       
                                           
                    11-03-2002 10:02                                                   
                                           
                    Please respond to                                                  
                                           
                    help-make                                                          
                                           
                                                                                       
                                           
                                                                                       
                                           






Hello there,

I have a list definitions:
dir1 = ../one
dir2 = ../two
dir3 = ../two

It may happen that some variables point to the same directory

Now I would like to have a single list
dirs = $(dir1) $(dir2) $(dir3)

but I need this list to be unique i.e. I need dirs to be: ../one ../two

Has anybody any idea how to do this? Of course dir* definitions can be changed any 
time and dirs shoudl be always correct.

thanks
--
Maciej Walezak
-GDN-

_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make





_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to