-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
21844: Updates load, clone, store, and verify methods to reflect Amal…
…gam changes (#331) Co-authored-by: Cade Mack <[email protected]> Co-authored-by: howsoRes <[email protected]> Co-authored-by: Andrew Bassett <[email protected]>
- Loading branch information
1 parent
e5e7f95
commit f2bf0f3
Showing
16 changed files
with
147 additions
and
15 deletions.
There are no files selected for viewing
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
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
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
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,42 @@ | ||
(seq | ||
(declare (assoc | ||
filepath (get argv 1) | ||
)) | ||
|
||
(declare (assoc | ||
original_file_content (load filepath) | ||
)) | ||
|
||
;change load entity to load the amlg file and add escaping flag | ||
(declare (assoc | ||
modified_file_content | ||
(substr | ||
original_file_content | ||
;search pattern | ||
"LOAD_ENTITY (.+) \"(.+)howso.caml\" \"\" false \"\"" | ||
(null) | ||
;replacement pattern | ||
"LOAD_ENTITY $1 \"howso.amlg\" \"\" false \"{\\\"escape_contained_resource_names\\\": false}\"" | ||
) | ||
)) | ||
|
||
;change the specified filepaths be the current directory | ||
(assign (assoc | ||
modified_file_content | ||
(substr | ||
modified_file_content | ||
;search pattern | ||
"\"filepath\": \".+/\"" | ||
(null) | ||
;replacement pattern | ||
"\"filepath\": \"\"" | ||
) | ||
)) | ||
|
||
(if (store filepath modified_file_content) | ||
"Tracefile updated successfully." | ||
"ERROR: Tracefile not updated successfully." | ||
) | ||
) | ||
) |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"version": "0.0.0", | ||
"dependencies": { | ||
"amalgam": "54.7.1" | ||
"amalgam": "55.0.0" | ||
} | ||
} |