We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c5b5802 + ab3b816 commit f47ec3cCopy full SHA for f47ec3c
src/test/ui/update-references.sh
@@ -36,10 +36,11 @@ shopt -s nullglob
36
while [[ "$1" != "" ]]; do
37
for EXT in "stderr" "stdout"; do
38
for OUT_NAME in $BUILD_DIR/${1%.rs}.*$EXT; do
39
+ OUT_DIR=`dirname "$1"`
40
OUT_BASE=`basename "$OUT_NAME"`
- if ! (diff $OUT_NAME $MYDIR/$OUT_BASE >& /dev/null); then
41
- echo updating $MYDIR/$OUT_BASE
42
- cp $OUT_NAME $MYDIR
+ if ! (diff $OUT_NAME $MYDIR/$OUT_DIR/$OUT_BASE >& /dev/null); then
+ echo updating $MYDIR/$OUT_DIR/$OUT_BASE
43
+ cp $OUT_NAME $MYDIR/$OUT_DIR
44
fi
45
done
46
0 commit comments