| 
            Last change
 on this file since 3974 was             3615, checked in by cmv, 17 years ago           | 
        
        
          | 
             
Modifs relatives a l'introduction de RandomGeneratorInterface + delete de srandgen.c, cmv 01/05/2009 
 
           | 
        
        
          
            
              - 
Property                 svn:executable
 set to                 
*
               
             
           | 
        
        
          | 
            File size:
            1.1 KB
           | 
        
      
      
| Rev | Line |   | 
|---|
| [2751] | 1 | #!/bin/csh
 | 
|---|
 | 2 | # Pour changer "smakefile" en "Makefile"
 | 
|---|
| [3073] | 3 | # - Pas d'argument: tous les repertoire CVS sous la racine
 | 
|---|
| [2751] | 4 | # - $1 : nom du perpertoire a traiter
 | 
|---|
 | 5 | # ATTENTION: a lancer depuis la racine Sophya:
 | 
|---|
 | 6 | # > ./BuildMgr/change_smake2make.csh
 | 
|---|
 | 7 | # > ./BuildMgr/change_smake2make.csh XephemAstroLib
 | 
|---|
 | 8 | set CURDIR = `pwd`
 | 
|---|
 | 9 | 
 | 
|---|
 | 10 | #--- Recherche des repertoires sous CVS
 | 
|---|
 | 11 | if( $#argv > 0 ) then
 | 
|---|
| [3615] | 12 |   set dcvs = ( $* )
 | 
|---|
| [2751] | 13 | else
 | 
|---|
 | 14 |   set dcvs =
 | 
|---|
 | 15 |   foreach f ( `ls -1` )
 | 
|---|
 | 16 |     if( -e $f/CVS ) set dcvs = ( $dcvs $f )
 | 
|---|
 | 17 |   end
 | 
|---|
 | 18 | endif
 | 
|---|
 | 19 | 
 | 
|---|
 | 20 | #--- Action CVS dans chacun des repertoires concernes
 | 
|---|
 | 21 | foreach d ( $dcvs )
 | 
|---|
 | 22 |   if (-e $CURDIR/$d)  then
 | 
|---|
 | 23 |     cd $CURDIR/$d
 | 
|---|
 | 24 |     if( ! -e Makefile ) continue
 | 
|---|
 | 25 |     if( ! -e smakefile ) continue
 | 
|---|
 | 26 |     grep -q 'include ../BuildMgr/sophyamake.inc' Makefile
 | 
|---|
 | 27 |     if( $status != 0 ) continue
 | 
|---|
 | 28 |     grep -q 'include $(SOPHYABASE)/include/sophyamake.inc' smakefile
 | 
|---|
 | 29 |     if( $status != 0 ) continue
 | 
|---|
 | 30 |     sed 's?include $(SOPHYABASE)/include/sophyamake.inc?include ../BuildMgr/sophyamake.inc?' smakefile >! Makefile
 | 
|---|
 | 31 |     echo ">>> $d : Makefile generated from smakefile"
 | 
|---|
 | 32 |     diff smakefile Makefile
 | 
|---|
 | 33 |   endif
 | 
|---|
 | 34 | end
 | 
|---|
 | 35 | 
 | 
|---|
 | 36 | 
 | 
|---|
 | 37 | exit 0
 | 
|---|
 | 38 | 
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.