source: Sophya/trunk/SophyaLib/Mgr/crerep_sophya@ 3753

Last change on this file since 3753 was 2437, checked in by cmv, 22 years ago

chgt DPC...REP en SOPHYA...REP et EROSCXX en SOPHYACXX cmv 17/09/2003

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/csh
2
3if( $#argv < 1 ) then
4 echo "crerep_sophya <nom des repertoires> [nom_machine-compilateur]"
5 echo " - ex: crerep_sophya "\$"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($?SOPHYACXX) then
9 echo " defaut: `uname`-$SOPHYACXX"
10 else
11 echo " pas de defaut donnez explicitement nom_machine-compilateur"
12 endif
13 exit -1
14endif
15
16set dirl = $1
17if ( ! -e ${dirl} ) then
18 echo ATTENTION REPERTOIRE INEXISTANT:
19 echo ${dirl}
20 exit -1
21endif
22echo "rep. de base: ${dirl}"
23
24shift
25if( $#argv > 0 ) then
26 set diru = $1
27 echo "machine-compilateur: ${diru}"
28else if ($?SOPHYACXX) then
29 echo uname=`uname` SOPHYACXX = $SOPHYACXX
30 set diru = `uname`-$SOPHYACXX
31 echo "AUTOMATIQUE machine-compilateur: ${diru}"
32else
33 echo "precisez nom_machine-compilateur ou SOPHYACXX"
34 exit -1
35endif
36
37foreach d ( ${dirl}/${diru} \
38 ${dirl}/Include \
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
48end
49
50exit 0
51
Note: See TracBrowser for help on using the repository browser.