Fixed "diff reports as new the files excluded with $TAR_OPTS" bug.
intrigeri
18 years ago
150 | 150 | # tar: etc/irssi.conf: ... -> etc/irssi.conf |
151 | 151 | sed -e 's/\(tar: \)\?\([^:]*\):.*/\2/') |
152 | 152 | # Get new files |
153 | DIFF_DIFF=$(diff -qr "$TMPDIR"/`basename "$WATCHED_DIR"` "$WATCHED_DIR" | | |
153 | DIFF_DIFF=$(diff -qr $TAR_OPTS "$TMPDIR"/`basename "$WATCHED_DIR"` "$WATCHED_DIR" | | |
154 | 154 | # Only in test/etc: issue -> test/etc/issue |
155 | 155 | sed -n -e "s,^Only in $WATCHED_PARENT\([^:]*\): \(.*\),\1/\2,p") |
156 | 156 | FILES="$TAR_DIFF$DIFF_DIFF" |
187 | 187 | echo "$FILES_DETAILS_HEADER" >> "$TMP" |
188 | 188 | |
189 | 189 | # Just diff it! |
190 | if (LC_ALL=$LOCALE diff -urBN \ | |
190 | if (LC_ALL=$LOCALE diff -urBN $TAR_OPTS \ | |
191 | 191 | --minimal "$TMPDIR"/`basename "$WATCHED_DIR"` \ |
192 | 192 | "$WATCHED_DIR"); then |
193 | 193 | echo "Aucune différence." |
209 | 209 | |
210 | 210 | case "$1" in |
211 | 211 | report) |
212 | report_changes "testing-latest" | |
212 | if [ "x$2" == "x" ]; then | |
213 | report_changes "testing-latest" | |
214 | else | |
215 | report_changes "testing-$2" | |
216 | fi | |
213 | 217 | exit 0 |
214 | 218 | ;; |
215 | 219 | list) |