-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from pwnsky/dev
Dev
- Loading branch information
Showing
372 changed files
with
521 additions
and
509 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
Submodule res
updated
5 files
+1 −1 | Tools/proto/gen_msgid.py | |
+1 −1 | ToolsSrc/sqkctl/excel/config_generator.h | |
+1 −1 | ToolsSrc/sqkctl/excel/mini_excel_reader.h | |
+1 −1 | ToolsSrc/sqkctl/files.h | |
+1 −1 | ToolsSrc/sqkctl/main.cc |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
set SQUICK_RUN_ENV=ten |
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,56 @@ | ||
#! /usr/bin/python3 | ||
import os | ||
import collections | ||
import sys | ||
|
||
if len(sys.argv) < 2: | ||
env='dev' | ||
else: | ||
env=sys.argv[1] | ||
|
||
print('Gen env: ' + env) | ||
|
||
tmpl_path = '../config/tmpl' | ||
tmpl_value_path = '../config/tmpl/env' | ||
cfg_path = '../config/node' | ||
|
||
cfg_map = {} | ||
conf_content = '' | ||
|
||
def GetFileContent(path): | ||
fd = open(path, 'r') | ||
return fd.read() | ||
|
||
for root, dirs, files in os.walk(tmpl_path): | ||
for f in files: | ||
if f.endswith('.json'): | ||
print("json file: ", f) | ||
cfg_map[f] = GetFileContent(tmpl_path + '/' + f) | ||
elif f.endswith('.conf'): | ||
print("conf file: ", f) | ||
if f == env + '.conf': | ||
conf_content = GetFileContent(tmpl_path + '/env/' + f) | ||
|
||
|
||
# replace | ||
if (len(conf_content) > 0): | ||
conf_arr = conf_content.split('\n') | ||
for conf_line in conf_arr: | ||
conf = conf_line.split('=') | ||
if len(conf) < 2: | ||
continue | ||
key = conf[0] | ||
value = conf[1] | ||
for k2 in cfg_map: | ||
tmp = cfg_map[k2] | ||
tmp = tmp.replace('{' + key + '}', value) | ||
cfg_map[k2] = tmp | ||
else: | ||
print("Get " + env + " error") | ||
exit(-1) | ||
|
||
# save | ||
for k in cfg_map: | ||
fd = open(cfg_path + '/' + k, 'w') | ||
fd.write(cfg_map[k]) | ||
fd.close() |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,6 @@ | ||
add_subdirectory(core) | ||
add_subdirectory(node) | ||
|
||
if( MODE STREQUAL "dev" ) | ||
add_subdirectory(tutorial) | ||
endif() |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/squick/plugin/actor/actor.cc → src/plugin/core/actor/actor.cc
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
File renamed without changes.
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/squick/plugin/actor/i_actor_module.h → src/plugin/core/actor/i_actor_module.h
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
8 changes: 4 additions & 4 deletions
8
src/squick/plugin/actor/i_component_module.h → src/plugin/core/actor/i_component_module.h
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
2 changes: 1 addition & 1 deletion
2
src/squick/plugin/actor/plugin.cc → src/plugin/core/actor/plugin.cc
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
4 changes: 2 additions & 2 deletions
4
src/squick/plugin/actor/plugin.h → src/plugin/core/actor/plugin.h
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
src/squick/plugin/config/config_module.h → src/plugin/core/config/config_module.h
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
File renamed without changes.
Oops, something went wrong.