What about something like

# Find a separator that do not conflict with the directory names.
SEPERATORS=':[EMAIL PROTECTED]&;'
NOTOUCH="$DPEP_SOURCEDIR$WORKDIR"
TMP=`echo "$NOTOUCH" | tr -c -d $SEPERATORS`
SEPERATOR=`echo "$SEPERATORS" | tr -d "$TMP" | cut -c1`

LC_ALL=C diff -urNad $DPEP_DIFF_EXCLUDE . "$WORKDIR/$(basename 
"$DPEP_SOURCEDIR")" |
  sed -e "/^--- \|^diff /s$SEPERATOR \./$SEPERATOR $(basename 
"$DPEP_SOURCEDIR")~/$SEPERATOR" \
      -e "/^+++ \|^diff /s$SEPERATOR $WORKDIR/$SEPERATOR $SEPERATOR" \
      -e "/^diff /s: $DPEP_DIFF_EXCLUDE::" > "$DIFFHOLDER" || true

-- 
                                                    Jens Peter Secher
_DD6A 05B0 174E BFB2 D4D9 B52E 0EE5 978A FE63 E8A1 jpsecher gmail com_
A. Because it breaks the logical sequence of discussion
Q. Why is top posting bad?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to