@@ -390,8 +390,7 @@ upload-addr = \"{}/{}\"
390
390
391
391
// Unpack the regular documentation tarball.
392
392
let tarball_prefix = format ! ( "rust-docs-{}-{}" , version, target) ;
393
- let tarball = format ! ( "{}.tar.gz" ,
394
- self . dl_dir( ) . join( & tarball_prefix) . display( ) ) ;
393
+ let tarball = format ! ( "{}.tar.gz" , self . dl_dir( ) . join( & tarball_prefix) . display( ) ) ;
395
394
let tarball_dir = format ! ( "{}/rust-docs/share/doc/rust/html" , tarball_prefix) ;
396
395
run ( Command :: new ( "tar" )
397
396
. arg ( "xf" )
@@ -402,22 +401,22 @@ upload-addr = \"{}/{}\"
402
401
403
402
// Construct path to rustc documentation.
404
403
let tarball_prefix = format ! ( "rustc-docs-{}-{}" , version, target) ;
405
- let tarball = format ! ( "{}.tar.gz" ,
406
- self . dl_dir( ) . join( & tarball_prefix) . display( ) ) ;
404
+ let tarball = format ! ( "{}.tar.gz" , self . dl_dir( ) . join( & tarball_prefix) . display( ) ) ;
405
+ // Construct the path that contains the documentation inside the tarball.
406
+ let tarball_dir = format ! ( "{}/rustc-docs/share/doc/rust/html" , tarball_prefix) ;
407
407
408
408
// Only create and unpack rustc docs if artefacts include tarball.
409
409
if Path :: new ( & tarball) . exists ( ) {
410
- // Create the subdirectory that we will extract our nighly documentation into.
411
- let tarball_dir = format ! ( "{}/nightly-rustc" , tarball_dir) ;
412
- t ! ( fs:: create_dir_all( & tarball_dir) ) ;
410
+ let rustc_docs = docs. join ( "nightly-rustc" ) ;
411
+ t ! ( fs:: create_dir_all( & rustc_docs) ) ;
413
412
414
413
// Unpack the rustc documentation into the new directory.
415
414
run ( Command :: new ( "tar" )
416
415
. arg ( "xf" )
417
416
. arg ( & tarball)
418
417
. arg ( "--strip-components=6" )
419
418
. arg ( & tarball_dir)
420
- . current_dir ( & docs ) ) ;
419
+ . current_dir ( & rustc_docs ) ) ;
421
420
}
422
421
423
422
// Upload this to `/doc/$channel`
0 commit comments