Skip to content

Commit

Permalink
helpにバージョン情報を追加。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Aug 22, 2017
1 parent 5caee7f commit 9a0805a
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 5 deletions.
12 changes: 9 additions & 3 deletions aui_indexer/aui_indexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <string>
#include "input.h"
#include "api_hook.h"
#include "aui_indexer_version.h"

static const char * const AUI_LIST[] = {
"lwinput.aui",
Expand Down Expand Up @@ -123,12 +124,17 @@ FILE* fopenHook(char const* _FileName, char const* _Mode) {

void print_help() {
fprintf(stdout, ""
"aui_indexer.exe [-aui <aui_path>] <filepath_1> [filepath_2] [] ...\n"
" options...\n"
"aui_indexer %s by rigaya\n"
"\n"
"usage: aui_indexer.exe [-aui <aui_path>] <filepath_1> [filepath_2] [] ...\n"
"\n"
"options...\n"
" -h print help\n"
" -lwtmpdir set temp dir (only effective when aui is lwinput.aui)\n"
" -aui set aui path\n"
" if not set, this will try to use aui below.\n");
" if not set, this will try to use aui below.\n",
VER_STR_FILEVERSION);

for (int i = 0; i < _countof(AUI_LIST); i++) {
fprintf(stdout, " %s\n", AUI_LIST[i]);
}
Expand Down
3 changes: 1 addition & 2 deletions aui_indexer/aui_indexer.rc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <winver.h>
#include "aui_indexer_version.h"

#define VER_FILEVERSION 0,0,6,0
#define VER_STR_FILEVERSION "0.06"
#define EXE_NAME "aui_indexer.exe"
#define EXE_INFO "aui_indexer"

Expand Down
1 change: 1 addition & 0 deletions aui_indexer/aui_indexer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
</ItemGroup>
<ItemGroup>
<ClInclude Include="api_hook.h" />
<ClInclude Include="aui_indexer_version.h" />
<ClInclude Include="input.h" />
</ItemGroup>
<ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions aui_indexer/aui_indexer.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<ClInclude Include="api_hook.h">
<Filter>ヘッダー ファイル</Filter>
</ClInclude>
<ClInclude Include="aui_indexer_version.h">
<Filter>ヘッダー ファイル</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="aui_indexer.rc">
Expand Down
35 changes: 35 additions & 0 deletions aui_indexer/aui_indexer_version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// -----------------------------------------------------------------------------------------
// aui_indexer by rigaya
// -----------------------------------------------------------------------------------------
// The MIT License
//
// Copyright (c) 2014-2017 rigaya
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// IABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
// ------------------------------------------------------------------------------------------

#pragma once
#ifndef __AUI_INDEXER_VERSION_H__
#define __AUI_INDEXER_VERSION_H__

#define VER_FILEVERSION 0,0,6,0
#define VER_STR_FILEVERSION "0.06"

#endif //__AUI_INDEXER_VERSION_H__

0 comments on commit 9a0805a

Please sign in to comment.