We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c166b03 commit 5128affCopy full SHA for 5128aff
src/test/ui/update-references.sh
@@ -26,20 +26,21 @@ if [[ "$1" == "--help" || "$1" == "-h" || "$1" == "" || "$2" == "" ]]; then
26
echo " $0 ../../../build/x86_64-apple-darwin/test/ui *.rs */*.rs"
27
fi
28
29
+MYDIR=$(dirname $0)
30
31
BUILD_DIR="$1"
32
shift
33
34
shopt -s nullglob
35
36
while [[ "$1" != "" ]]; do
- MYDIR=$(dirname $1)
37
for EXT in "stderr" "stdout" "fixed"; 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
45
done
46
0 commit comments