forked from ninja-build/ninja
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add README.md and rename main to converter
- Loading branch information
1 parent
b287c06
commit b0375b4
Showing
2 changed files
with
34 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Usage | ||
``` | ||
usage: converter.py [-h] input_file output_file | ||
Converts ninja files to ShadowDash manifest files. | ||
positional arguments: | ||
input_file Path to the input file to process | ||
output_file Path to the output file | ||
options: | ||
-h, --help show this help message and exit | ||
``` | ||
|
||
You can call it using the following command: | ||
```bash | ||
python3 converter.py input_file output_file | ||
``` | ||
|
||
# Prerequisites | ||
- Python 3.6 or higher | ||
|
||
# Test | ||
|
||
To test the program we can use the files in the `docs` folder. The following command will convert the `build.ninja` file to a `build.ninja.cc` file: | ||
```bash | ||
python3 converter.py ../docs/build.ninja build.ninja.cc | ||
``` | ||
Aside from formatting, the file `build.ninja.cc` should be identical to the `build.ninja.cc` file in the docs directory. | ||
|
||
# Implementation | ||
|
||
The program is implemeted to match the languages developed by the `ninja` build system and Team 4 `new-language` subteam. |
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