Skip to content

Commit cce98c4

Browse files
Updating README for v0.1.0 release
1 parent 141b0a3 commit cce98c4

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Examples/test.cpp

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//bin/true;runcpp2 "$0" "$@"; exit;
2+
13
/* runcpp2
24
35
PassScriptPath: true

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
![runcpp2 logo](./Runcpp2Logo.png)
44

5-
A cross-platform tool that can let you run any c++ files as a script, just like python!
6-
7-
Run c++ files anytime, anywhere.
5+
A cross-platform declarative <s>and scriptable (WIP)</s> build system for c++ with the addition of letting you run any c++ files as a script, just like python!
86

97
### 🛠️ Prerequisites
108
- Any C++ compiler. The default user config only has g++ and msvc profiles. But feel free to
@@ -34,8 +32,7 @@ runcpp2 ./script.cpp <any arguments>
3432
```
3533

3634
> [!NOTE]
37-
> When invoking a c++ file with runcpp2, the first argument (`argv[0]`) to `main()` is the path
38-
> to the script, not the path to an executable.
35+
> On Unix, if you have added runcpp2 to your PATH and add this line `//bin/true;runcpp2 "$0" "$@"; exit;` to the top of your script, you can run the script directly by `./script.cpp <arguments>`
3936
4037
#### 2. Watch and give compile errors
4138
If you want to edit the script but want to have feedback for any error, you can use "watch" mode.

TODO.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
TODO:
2-
- Track script info changes properly for either script change or dependency change
32
- Track include files for compiling
43
- Allow runcpp2 to be library
54
- Ability to compile runcpp2 as single cpp
@@ -12,6 +11,9 @@ TODO:
1211
- Where the path contains escape character which escaped the wrapping quotes
1312
- Use <csignal> to handle potential segfaults
1413
- Separate git and local source options
14+
- Add branch/tag option for git
15+
- Add initialize submodule option for git
16+
- Change "Default" to "DefaultProfile" and "DefaultPlatform"
1517
- Migrate to libyaml
1618
- Add wildcard support for filenames and extensions
1719
- Add tests and examples (On Windows as well)

0 commit comments

Comments
 (0)