We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3d8fc5 commit 6f414b1Copy full SHA for 6f414b1
src/test/ui-fulldeps/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