Blame view

tools/scripts/CheckThirdPass.sh 1.05 KB
e6be5137b   Jean-François Rey   reinitialized pro...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  #!/bin/bash
  
  #################################################
  # File :    CheckThirdPass.sh                   #
  # Brief :   Check Second Pass                   #
  # Author :  Jean-François Rey                   #
  # Version : 1.0                                 #
  # Date :    25/06/13                            #
  #################################################
  
  # configuration file
  . "$OTMEDIA_HOME/cfg/ThirdPass.cfg"
  
  
  #check_third_pass_output_speeral(plplist,resdir)
  # - plplist : filename containing plp list
  # - resdir  : output Speeral directory 
  function check_third_pass_output_speeral()
  {
      if [ $# -eq 2 ]
      then
          if [ ! -e "$1" ] || [ -z "$1" ]; then return 1; fi
b9a54507e   Jean-François Rey   update bugfix + r...
23
24
25
          FILENBSEG=$(ls $2/*.seg 2>/dev/null | grep -f "$1" | wc -l)
          FILENBRES=$(ls $2/*.res 2>/dev/null | grep -f "$1" | wc -l)
          FILENBTREIL=$(ls $2/*.treil 2>/deV/null | grep -f "$1" | wc -l)
e6be5137b   Jean-François Rey   reinitialized pro...
26
27
28
29
30
          FILENB=$(cat "$1" | wc -l)    
          if [ $FILENB -ne $FILENBSEG ] || [ $FILENB -ne $FILENBRES ] || [ $FILENB -ne $FILENBTREIL ] ; then return 1;fi
      fi
      return 0
  }