Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.

Commit 43ceb31

Browse files
committed
Simplify command generation logic
1 parent 9bfcc32 commit 43ceb31

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

package-rust.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,7 @@ def run(args):
129129

130130
# Create the LICENSE.txt file used in some GUI installers
131131
license_file = TEMP_DIR + "/LICENSE.txt"
132-
cmd = "cat " + \
133-
rustc_dir + "/COPYRIGHT " + rustc_dir + "/LICENSE-APACHE " + rustc_dir + "/LICENSE-MIT " + \
134-
"> " + license_file
132+
cmd = "cat {0}/COPYRIGHT {0}/LICENSE-APACHE {0}/LICENSE-MIT > {1}".format(rustc_dir, license_file)
135133
run(["sh", "-c", cmd])
136134

137135
# Fish out the following Makefile variables from the source code or rebuild them somehow.

0 commit comments

Comments
 (0)