Changeset 6753ff7


Ignore:
Timestamp:
04/09/2006 05:29:45 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
eddf89f5
Parents:
5bcccc1
Message:

Added do_ica_work code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extras/do_ica_work

    r5bcccc1 r6753ff7  
    11#!/bin/bash
    22# $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
    311set -e
    412
    5 echo "This is a placeholder for now"
     13local RAWDIFF=/tmp/rawdiff.$$
     14local REPORT="${3}/REPORT.${1}V${2}"
    615
    7 exit
     16cd $4
    817
     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 TracChangeset for help on using the changeset viewer.