-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tools - Add script to update HEMTT include folder (#8134)
- Loading branch information
1 parent
5aa6e56
commit 28cad69
Showing
7 changed files
with
48 additions
and
22 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -187,3 +187,4 @@ | |
|
||
|
||
#endif /* DIK_ESCAPE */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# PabstMirror - Overwrites all files in /include with updated version from a p-drive | ||
|
||
import os | ||
import shutil | ||
|
||
include_base_path = os.path.join(os.path.dirname(os.getcwd()), "include") | ||
p_drive_path = "P:\\" | ||
|
||
if not os.path.exists(p_drive_path): | ||
raise Exception("No P-drive") | ||
|
||
for root, _dirs, files in os.walk(include_base_path): | ||
relative_path = os.path.relpath(root, include_base_path) | ||
for file in files: | ||
if file == "$PBOPREFIX$": | ||
continue | ||
file_r_path = os.path.join(include_base_path, relative_path, file) | ||
file_v_path = os.path.join(p_drive_path, relative_path, file) | ||
if not os.path.isfile(file_v_path): | ||
raise Exception("Missing p-drive file {}".format(file_v_path)) | ||
shutil.copyfile(file_v_path, file_r_path) |