Skip to content

Commit

Permalink
thstd: Add STD support
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutzer authored and nmlgc committed Sep 28, 2018
1 parent a0ab67b commit 4895311
Show file tree
Hide file tree
Showing 6 changed files with 1,088 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ add_subdirectory(thanm)
add_subdirectory(thdat)
add_subdirectory(thecl)
add_subdirectory(thmsg)
add_subdirectory(thstd)
add_subdirectory(thtk)
add_subdirectory(contrib)

Expand Down
2 changes: 2 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ thecl d - - - - - y y - y y y y y - y y - y y y y y y y y
thecl c - - - - - y y - y y y y y - y y - y y y y y y y y
thmsg d - - - - - y y - y y y y - - y y - y y y y y y y y
thmsg c - - - - - y y - y y y y - - y y - y y y y y y y y
thstd d - - - - - y y - y y y y - - y y - y y y y y y y y
thstd c - - - - - y y - y y y y - - y y - y y y y y y y y
9 changes: 9 additions & 0 deletions thstd/CMakeLists.txt
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)
62 changes: 62 additions & 0 deletions thstd/thstd.1
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.
Loading

0 comments on commit 4895311

Please sign in to comment.