Skip to content

Commit f8487fd

Browse files
committed
remove src/segment and mv server.cpp into server/server.cpp and modify readme.md
1 parent 94ae4bd commit f8487fd

File tree

9 files changed

+4
-127
lines changed

9 files changed

+4
-127
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ CMAKE_MINIMUM_REQUIRED (VERSION 2.6)
55
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
66
set (CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "default install path" FORCE )
77
endif()
8+
89
ADD_DEFINITIONS(-O3 -Wall -g)
910
IF (DEFINED ENC)
1011
ADD_DEFINITIONS(-DCPPJIEBA_${ENC})
1112
ENDIF()
12-
#ADD_DEFINITIONS(-DNO_FILTER)
13-
ADD_SUBDIRECTORY(src)
14-
ADD_SUBDIRECTORY(dict)
1513

1614
IF("${CMAKE_SYSTEM}" MATCHES "Linux")
15+
ADD_SUBDIRECTORY(server)
16+
ADD_SUBDIRECTORY(dict)
1717
ADD_SUBDIRECTORY(script)
1818
ADD_SUBDIRECTORY(conf)
1919
endif()

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ make test
4747

4848
```
4949
#Usage: /etc/init.d/cjserver {start|stop|restart|force-reload}
50-
/etc/init.d/cjserver.start
50+
/etc/init.d/cjserver.start >> /dev/null 2>&1
5151
/etc/init.d/cjserver.stop
5252
```
5353

script/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
INSTALL(PROGRAMS cjserver.start cjserver.stop DESTINATION /etc/init.d/)
2-
INSTALL(PROGRAMS cjseg.sh DESTINATION bin)

script/cjseg.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
2-
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
32

43
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src)
54

6-
ADD_EXECUTABLE(cjsegment segment.cpp)
75
ADD_EXECUTABLE(cjserver server.cpp)
86
TARGET_LINK_LIBRARIES(cjserver pthread)
97

10-
INSTALL(TARGETS cjsegment RUNTIME DESTINATION bin)
118
INSTALL(TARGETS cjserver RUNTIME DESTINATION bin)
129

File renamed without changes.
File renamed without changes.
File renamed without changes.

src/segment.cpp

Lines changed: 0 additions & 114 deletions
This file was deleted.

0 commit comments

Comments
 (0)