Last change
on this file since 3834 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 |
|
---|
3 | if( $#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
|
---|
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 ($?SOPHYACXX) then
|
---|
29 | echo uname=`uname` SOPHYACXX = $SOPHYACXX
|
---|
30 | set diru = `uname`-$SOPHYACXX
|
---|
31 | echo "AUTOMATIQUE machine-compilateur: ${diru}"
|
---|
32 | else
|
---|
33 | echo "precisez nom_machine-compilateur ou SOPHYACXX"
|
---|
34 | exit -1
|
---|
35 | endif
|
---|
36 |
|
---|
37 | foreach 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
|
---|
48 | end
|
---|
49 |
|
---|
50 | exit 0
|
---|
51 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.