-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
1,088 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
add_executable(thstd | ||
thstd.c | ||
thstd.h | ||
) | ||
add_definitions( -g ) | ||
target_link_libraries(thstd util) | ||
link_setargv(thstd) | ||
install(TARGETS thstd DESTINATION bin) | ||
install(FILES thstd.1 DESTINATION share/man/man1) |
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,62 @@ | ||
.\" Redistribution and use in source and binary forms, with | ||
.\" or without modification, are permitted provided that the | ||
.\" following conditions are met: | ||
.\" | ||
.\" 1. Redistributions of source code must retain this list | ||
.\" of conditions and the following disclaimer. | ||
.\" 2. Redistributions in binary form must reproduce this | ||
.\" list of conditions and the following disclaimer in the | ||
.\" documentation and/or other materials provided with the | ||
.\" distribution. | ||
.\" | ||
.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND | ||
.\" CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED | ||
.\" WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A | ||
.\" PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
.\" COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, | ||
.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
.\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
.\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE | ||
.\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
.\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH | ||
.\" DAMAGE. | ||
.Dd September 24, 2018 | ||
.Dt THSTD 1 | ||
.Os thtk | ||
.Sh NAME | ||
.Nm thstd | ||
.Nd Touhou background script tool | ||
.Sh SYNOPSIS | ||
.Nm | ||
.Op Fl V | ||
.Op Fl d | c VERSION | ||
.Op Ar input Op Ar output | ||
.Sh DESCRIPTION | ||
The | ||
.Nm | ||
utility performs various actions on background scripts. | ||
The following commands are available: | ||
.Bl -tag -width Ds | ||
.It Nm Fl c Ar version Op Ar input Ar output | ||
Compiles a stage script. | ||
.It Nm Fl d Ar version Op Ar input Op Ar output | ||
Dumps a stage script. | ||
.It Nm Fl V | ||
Displays the program version. | ||
.El | ||
.Pp | ||
.El | ||
.Sh EXIT STATUS | ||
The | ||
.Nm | ||
utility exits with 0 on success, 1 on error. | ||
.\" TODO: .Sh EXAMPLES | ||
.Sh SEE ALSO | ||
.Lk https://github.com/thpatch/thtk "Project homepage" | ||
.Sh SECURITY CONSIDERATIONS | ||
Invalid data may not be properly handled. | ||
Do not operate on untrusted files. |
Oops, something went wrong.