| Last change
 on this file since 3287 was             3073, checked in by cmv, 19 years ago | 
        
          | 
correction faute dans blabla  cmv 14/09/2006
 | 
        
          | 
              
Property                 svn:executable
 set to                 * | 
        
          | File size:
            1.1 KB | 
      
      
| Line |  | 
|---|
| 1 | #!/bin/csh | 
|---|
| 2 | # Pour changer "smakefile" en "Makefile" | 
|---|
| 3 | # - Pas d'argument: tous les repertoire CVS sous la racine | 
|---|
| 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 | 
|---|
| 12 | set dcvs = $1 | 
|---|
| 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.