experimental
Last change
on this file since 6753ff7 was 6753ff7, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago |
Added do_ica_work code.
|
-
Property mode
set to
100755
|
File size:
818 bytes
|
Rev | Line | |
---|
[ed0a142] | 1 | #!/bin/bash
|
---|
| 2 | # $Id$
|
---|
[6753ff7] | 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 |
|
---|
[ed0a142] | 11 | set -e
|
---|
| 12 |
|
---|
[6753ff7] | 13 | local RAWDIFF=/tmp/rawdiff.$$
|
---|
| 14 | local REPORT="${3}/REPORT.${1}V${2}"
|
---|
| 15 |
|
---|
| 16 | cd $4
|
---|
| 17 |
|
---|
| 18 | echo -e "Diffing ${1} and ${2}... " > $REPORT
|
---|
| 19 | diff -ur ${1} ${2} > $RAWDIFF || :
|
---|
| 20 |
|
---|
| 21 | echo -e "The list of binary files that differ:\n" > $REPORT
|
---|
| 22 | grep "iles.*differ$" $RAWDIFF >> $REPORT
|
---|
| 23 |
|
---|
| 24 | echo -e "The list of files that exist \"only in\" 1 of the directories:\n" >> $REPORT
|
---|
| 25 |
|
---|
| 26 | if grep "^Only in" $RAWDIFF >/dev/null 2>&1; then
|
---|
| 27 | grep "^Only in" $RAWDIFF >> $REPORT
|
---|
| 28 | else
|
---|
| 29 | echo NONE >> $REPORT
|
---|
| 30 | fi
|
---|
[ed0a142] | 31 |
|
---|
[6753ff7] | 32 | grep -v "iles.*differ$" $RAWDIFF | \
|
---|
| 33 | grep -v "^Only in" > ${ICA_DIR}/${1}V${2}.ASCII.DIFF
|
---|
[ed0a142] | 34 |
|
---|
[6753ff7] | 35 | rm -f $RAWDIFF
|
---|
Note:
See
TracBrowser
for help on using the repository browser.