mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

boli
13.26.2009 cf4d532bc0312d6456637a01c6b7c29d2906ecbd
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
61
62
63
64
65
66
67
68
69
#!/bin/sh
 
TEST=/usr/bin/test
#Default Values
PROD="TEST : "
BUILDS_DIR=test-builds
SVN_URL=file:///svn-mirror/trunk/opends
RECIPIENT="jeanine.pikus@sun.com,carole.hebrard@sun.com"
 
SANITY=1
TEST_MODE=0
 
if ${TEST} $# -gt 0
then
  SANITY=0
 
  if ${TEST} $# -eq 1
  then
      Product=$@
  else
      if ${TEST} $# -eq 2
      then
         Product=$1
         TEST_MODE=1
      else
         echo "too much parameters ..."
         exit
      fi
  fi
 
  # Config files
  echo ${Product}
  if  [ ! -d ./product/${Product} ]
  then
      . ./product/${Product}
  else
      echo "the file ./product/${Product} doesn't exist .."
      exit
  fi
  if ${TEST} ${TEST_MODE} -eq 1
  then
      echo "MODE TEST..."
      BUILDS_DIR=${BUILDS_DIR}/tests
      RECIPIENT="jeanine.pikus@sun.com,carole.hebrard@sun.com"
  fi
 
else
  SANITY=1
  Product=""
# need to be dev : I would like to add a mode test
      echo "not enough parameters ..."
      echo "you must specify either trunk , either branch12 see ./product/"
      exit
fi
 
 export Product
export PROD
export BUILDS_DIR
export SVN_URL
export RECIPIENT
export TEST_MODE 
export SANITY 
echo "========================="
echo "Product = ${Product}"
echo "PROD = ${PROD}"
echo "BUILDS_DIR = ${BUILDS_DIR}"
echo "SVN_URL = ${SVN_URL}"
echo "RECIPIENT = ${RECIPIENT}"
echo "========================="