Codebase list metche / ba2d66d
Fixed "diff reports as new the files excluded with $TAR_OPTS" bug. intrigeri 18 years ago
2 changed file(s) with 8 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
150150 # tar: etc/irssi.conf: ... -> etc/irssi.conf
151151 sed -e 's/\(tar: \)\?\([^:]*\):.*/\2/')
152152 # 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" |
154154 # Only in test/etc: issue -> test/etc/issue
155155 sed -n -e "s,^Only in $WATCHED_PARENT\([^:]*\): \(.*\),\1/\2,p")
156156 FILES="$TAR_DIFF$DIFF_DIFF"
187187 echo "$FILES_DETAILS_HEADER" >> "$TMP"
188188
189189 # Just diff it!
190 if (LC_ALL=$LOCALE diff -urBN \
190 if (LC_ALL=$LOCALE diff -urBN $TAR_OPTS \
191191 --minimal "$TMPDIR"/`basename "$WATCHED_DIR"` \
192192 "$WATCHED_DIR"); then
193193 echo "Aucune différence."
209209
210210 case "$1" in
211211 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
213217 exit 0
214218 ;;
215219 list)
1717 # Address receiving testing changes report
1818 EMAIL_ADDRESS="root@localhost"
1919
20 # tar options
20 # Patterns to exclude ; will be used to feed tar and diff
2121 TAR_OPTS="--exclude *.swp --exclude #* --exclude *~"
2222
2323 # locale (will be used to feed LC_ALL)