source: extras/do_ica_work@ 6753ff7

experimental
Last change on this file since 6753ff7 was 6753ff7, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Added do_ica_work code.

  • Property mode set to 100755
File size: 818 bytes
Line 
1#!/bin/bash
2# $Id$
3
4# Acknowledgment:
5# The following code is a modified version of an original work written by
6# Greg Schafer for the "DIY Linux" project and is included here with his
7# permission.
8# ref: http://www.diy-linux.org
9#
10
11set -e
12
13local RAWDIFF=/tmp/rawdiff.$$
14local REPORT="${3}/REPORT.${1}V${2}"
15
16cd $4
17
18echo -e "Diffing ${1} and ${2}... " > $REPORT
19diff -ur ${1} ${2} > $RAWDIFF || :
20
21echo -e "The list of binary files that differ:\n" > $REPORT
22grep "iles.*differ$" $RAWDIFF >> $REPORT
23
24echo -e "The list of files that exist \"only in\" 1 of the directories:\n" >> $REPORT
25
26if grep "^Only in" $RAWDIFF >/dev/null 2>&1; then
27 grep "^Only in" $RAWDIFF >> $REPORT
28else
29 echo NONE >> $REPORT
30fi
31
32grep -v "iles.*differ$" $RAWDIFF | \
33grep -v "^Only in" > ${ICA_DIR}/${1}V${2}.ASCII.DIFF
34
35rm -f $RAWDIFF
Note: See TracBrowser for help on using the repository browser.