File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -26,20 +26,21 @@ if [[ "$1" == "--help" || "$1" == "-h" || "$1" == "" || "$2" == "" ]]; then
26
26
echo " $0 ../../../build/x86_64-apple-darwin/test/ui *.rs */*.rs"
27
27
fi
28
28
29
+ MYDIR=$( dirname $0 )
29
30
30
31
BUILD_DIR=" $1 "
31
32
shift
32
33
33
34
shopt -s nullglob
34
35
35
36
while [[ " $1 " != " " ]]; do
36
- MYDIR=$( dirname $1 )
37
37
for EXT in " stderr" " stdout" " fixed" ; do
38
38
for OUT_NAME in $BUILD_DIR /${1% .rs} .* $EXT ; do
39
+ OUT_DIR=` dirname " $1 " `
39
40
OUT_BASE=` basename " $OUT_NAME " `
40
- if ! (diff $OUT_NAME $MYDIR /$OUT_BASE >& /dev/null); then
41
- echo updating $MYDIR /$OUT_BASE
42
- cp $OUT_NAME $MYDIR
41
+ if ! (diff $OUT_NAME $MYDIR /$OUT_DIR / $ OUT_BASE >& /dev/null); then
42
+ echo updating $MYDIR /$OUT_DIR / $ OUT_BASE
43
+ cp $OUT_NAME $MYDIR / $OUT_DIR
43
44
fi
44
45
done
45
46
done
You can’t perform that action at this time.
0 commit comments