File: check_scan_parse_output.sh

package info (click to toggle)
3dldf 2.0.3%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 12,508 kB
  • ctags: 7
  • sloc: makefile: 892; sh: 117; cpp: 5
file content (29 lines) | stat: -rwxr-xr-x 558 bytes parent folder | download | duplicates (2)
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
#! /bin/bash

#### check_scan_parse_output.sh
#### 3DLDF-2.0.3/src/check_scan_parse_output.sh

#### Created by Laurence D. Finston (LDF) Sun May 19 16:48:34 CEST 2013

#echo "Arg 1 == $1"
#echo "Arg 2 == $2"

if test -e "$2"
then
   echo "$2 exists"
   diff --brief --ignore-all-space --ignore-blank-lines \
        --ignore-matching-lines='^[[:space:]]*\(#line\|/\*\)' $1 $2 
   r=$?
   if test $r -eq 1
   then
      echo "$2 has changed."
      mv $1 $2
   else
      echo "$2 is unchanged."
   fi
else
   echo "$2 does not exist"
   mv $1 $2
fi 

exit 0