Grotus wrote: 
> 
> .git/info/sparse-checkout
> > 
Code:
--------------------
  >   > 
  > # checkout everything
  > /*
  > # but not the Bin directory
  > !/Bin
  > # but do checkout the Bin/x86_64-linux directory
  > /Bin/x86_64-linux
  > # and also not the CPAN/arch directory
  > !/CPAN/arch
  > # but do checkout the CPAN/arch/5.14/x86_64-linux-thread-multi directory
  > /CPAN/arch/5.14/x86_64-linux-thread-multi
  > 
--------------------
> > 
> 
> .git/info/exclude
> > 
Code:
--------------------
  >   > 
  > # ignore everything in the Bin directory
  > /Bin/*
  > # but don't ignore the Bin/x86_64-linux directory
  > !/Bin/x86_64-linux
  > # ignore everything in the CPAN/arch directory
  > /CPAN/arch/*
  > # but don't ignore the CPAN/arch/5.14 directory
  > !/CPAN/arch/5.14
  > # but ignore everything in the CPAN/arch/5.14 directory
  > /CPAN/arch/5.14/*
  > # but don't ignore the CPAN/arch/5.14/x86_64-linux-thread-multi directory
  > !/CPAN/arch/5.14/x86_64-linux-thread-multi
  > 
--------------------
> > 

I am now realizing that this is not quite right for some of the
architectures.  In all the perl versions other than 5.12 and 5.14 there
are some additional files/directories that are needed for the perl
modules that are at different versions from the mainline server.  So to
get those cases, it looks like what needs to happen is to add a couple
of lines to the sparse-checkout and modify a line in the exclude.  The
parts that you don't want in those 5.X directories all have hyphens in
the directory name, while all the perl modules do not have hyphens.  So,
to get what you need for 5.18 you could use this:

.git/info/sparse-checkout

Code:
--------------------
    
  # checkout everything
  /*
  # but not the Bin directory
  !/Bin
  # but do checkout the Bin/x86_64-linux directory
  /Bin/x86_64-linux
  # and also not the CPAN/arch directory
  !/CPAN/arch
  # but do checkout the CPAN/arch/5.18 directory
  /CPAN/arch/5.18
  # but not the directories that have hyphens in them
  !/CPAN/arch/5.18/*-*
  # but do checkout the CPAN/arch/5.18/x86_64-linux-thread-multi directory
  /CPAN/arch/5.18/x86_64-linux-thread-multi
  
--------------------


.git/info/exclude

Code:
--------------------
    
  # ignore everything in the Bin directory
  /Bin/*
  # but don't ignore the Bin/x86_64-linux directory
  !/Bin/x86_64-linux
  # ignore everything in the CPAN/arch directory
  /CPAN/arch/*
  # but don't ignore the CPAN/arch/5.18 directory
  !/CPAN/arch/5.18
  # but ignore everything in the CPAN/arch/5.18 directory that has a hyphen
  /CPAN/arch/5.18/*-*
  # but don't ignore the CPAN/arch/5.18/x86_64-linux-thread-multi directory
  !/CPAN/arch/5.18/x86_64-linux-thread-multi
  
--------------------


Also, if you are running everything from your working directory (not
putting Cache and prefs and Logs in the regular file system locations),
then you should also put these directories in your .git/info/exclude
file:

Code:
--------------------
    
  /Cache
  /Logs
  /prefs
  
--------------------


------------------------------------------------------------------------
Grotus's Profile: http://forums.slimdevices.com/member.php?userid=887
View this thread: http://forums.slimdevices.com/showthread.php?t=99667

_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta

Reply via email to