File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 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
2626 echo " $0 ../../../build/x86_64-apple-darwin/test/ui *.rs */*.rs"
2727fi
2828
29+ MYDIR=$( dirname $0 )
2930
3031BUILD_DIR=" $1 "
3132shift
3233
3334shopt -s nullglob
3435
3536while [[ " $1 " != " " ]]; do
36- MYDIR=$( dirname $1 )
3737 for EXT in " stderr" " stdout" " fixed" ; do
3838 for OUT_NAME in $BUILD_DIR /${1% .rs} .* $EXT ; do
39+ OUT_DIR=` dirname " $1 " `
3940 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
4344 fi
4445 done
4546 done
You can’t perform that action at this time.
0 commit comments