| Rev | Line |  | 
|---|
| [658] | 1 | #!/bin/csh | 
|---|
|  | 2 |  | 
|---|
|  | 3 | if( $#argv < 1 ) then | 
|---|
|  | 4 | echo "crerep_peida <nom des repertoires> [nom_machine-compilateur]" | 
|---|
|  | 5 | echo " - ex: crerep_peida "\$"GROUP_DIR/PeidaWork HP-UX" | 
|---|
|  | 6 | echo " - possibilites nom_machine-compilateur" | 
|---|
|  | 7 | echo "    [AIX-xlC AIX-g++ HP-UX-aCC HP-UX-g++ OSF1-cxx OSF1-g++ Linux-g++ ...]" | 
|---|
|  | 8 | if($?EROSCXX) then | 
|---|
|  | 9 | echo "    defaut: `uname`-$EROSCXX" | 
|---|
|  | 10 | else | 
|---|
|  | 11 | echo "    pas de defaut donnez explicitement nom_machine-compilateur" | 
|---|
|  | 12 | endif | 
|---|
|  | 13 | exit -1 | 
|---|
|  | 14 | endif | 
|---|
|  | 15 |  | 
|---|
|  | 16 | set dirl = $1 | 
|---|
|  | 17 | if ( ! -e ${dirl} ) then | 
|---|
|  | 18 | echo ATTENTION REPERTOIRE INEXISTANT: | 
|---|
|  | 19 | echo ${dirl} | 
|---|
|  | 20 | exit -1 | 
|---|
|  | 21 | endif | 
|---|
|  | 22 | echo "rep. de base: ${dirl}" | 
|---|
|  | 23 |  | 
|---|
|  | 24 | shift | 
|---|
|  | 25 | if( $#argv > 0 ) then | 
|---|
|  | 26 | set diru = $1 | 
|---|
|  | 27 | echo "machine-compilateur: ${diru}" | 
|---|
|  | 28 | else if ($?EROSCXX) then | 
|---|
|  | 29 | echo uname=`uname` EROSCXX = $EROSCXX | 
|---|
|  | 30 | set diru = `uname`-$EROSCXX | 
|---|
|  | 31 | echo "AUTOMATIQUE machine-compilateur: ${diru}" | 
|---|
|  | 32 | else | 
|---|
|  | 33 | echo "precisez nom_machine-compilateur ou EROSCXX" | 
|---|
|  | 34 | exit -1 | 
|---|
|  | 35 | endif | 
|---|
|  | 36 |  | 
|---|
|  | 37 | foreach d ( ${dirl}/${diru} \ | 
|---|
|  | 38 | ${dirl}/Include ${dirl}/Include/tnt \ | 
|---|
|  | 39 | ${dirl}/${diru}/Exec \ | 
|---|
|  | 40 | ${dirl}/${diru}/Libs ${dirl}/${diru}/ShLibs \ | 
|---|
|  | 41 | ${dirl}/${diru}/Objs ) | 
|---|
|  | 42 | if ( -e $d ) then | 
|---|
|  | 43 | echo "rep. existant: $d" | 
|---|
|  | 44 | else | 
|---|
|  | 45 | echo "rep. cree: $d" | 
|---|
|  | 46 | mkdir $d | 
|---|
|  | 47 | endif | 
|---|
|  | 48 | end | 
|---|
|  | 49 |  | 
|---|
|  | 50 | exit 0 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.