File: syrthes4_create_case

package info (click to toggle)
syrthes 4.3.0-dfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 84,148 kB
  • sloc: ansic: 49,309; python: 25,790; makefile: 265; sh: 215; xml: 153
file content (60 lines) | stat: -rwxr-xr-x 1,618 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/sh
#==========================================================================
#                    Creation d'un cas SYRTHES
#==========================================================================


echo 
echo "***************************************** "
echo "  $1 : creating SYRTHES case...         "


if [ $# -eq 0 ] ; then
    echo "  too few arguments for syrthes_case "
    echo "  --> usage : syrthes_case name"
echo "***************************************** "
    exit
fi

if [ -d "$1" -o -f "$1" ]; then
   echo "  --> file exists, choose another name"
echo "***************************************** "
   exit
fi

. /usr/lib/syrthes/bin/syrthes.profile
if [ -z "$SYRTHES4_HOME" ]; then
  echo "  --> SYRTHES_HOME not found"
echo "***************************************** "
  exit
fi


#==========================================================================
# creation du cas
#==========================================================================


mkdir $1
cd $1

mkdir usr_examples

# a transferer dans arch/&Arch_Name/linclude
echo ${SYRTHES4_HOME}
echo ${NOM_ARCH}
cp ${SYRTHES4_HOME}/share/syrthes/user.c  usr_examples/.
cp ${SYRTHES4_HOME}/share/syrthes/user_cond.c  usr_examples/.
cp ${SYRTHES4_HOME}/share/syrthes/user_hmt.c  usr_examples/.
cp ${SYRTHES4_HOME}/share/syrthes/user_ray.c  usr_examples/.

# à transferer dans arch/&Arch_Name/share
cp ${SYRTHES4_HOME}/share/syrthes/Makefile .
cp ${SYRTHES4_HOME}/share/syrthes/syrthes_data.syd_example .
cp ${SYRTHES4_HOME}/share/syrthes/syrthes.py .

cd ..

echo "  OK ! "
echo "***************************************** "
echo