Changeset cfdf333
- Timestamp:
- 02/09/12 20:34:02 (13 years ago)
- Branches:
- master
- Children:
- ac25afd
- Parents:
- 2ff1f65
- git-author:
- Tomasz Obrebski <to@…> (02/09/12 20:34:02)
- git-committer:
- Tomasz Obrebski <to@…> (02/09/12 20:34:02)
- Files:
-
- 2 added
- 2 deleted
- 7 edited
- 10 moved
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r5f4d9c3 rcfdf333 19 19 components: 20 20 cd $(SRC_DIR)/lib && make; cd $(CUR_DIR) 21 22 21 @for cmp in $(COMPONENTS); do\ 23 22 cd $(SRC_DIR)/$$cmp && make; cd $(CUR_DIR); \ … … 30 29 .PHONY: configuration 31 30 configuration: 31 cd $(CUR_DIR)/conf && make; cd $(CUR_DIR) 32 32 33 33 .PHONY: libraries … … 41 41 # ------------------------------------------------------------------ 42 42 .PHONY: clean 43 clean: clean_components clean_documentation 43 clean: clean_components clean_documentation clean_config 44 44 @echo "All files cleaned successfully!" 45 45 … … 55 55 cd $(CUR_DIR)/doc && make clean; cd $(CUR_DIR) 56 56 57 .PHONY: clean_config 58 clean_config: 59 cd $(CUR_DIR)/conf && make clean; cd $(CUR_DIR) 60 57 61 # ------------------------------------------------------------------ 58 62 # install section … … 60 64 .PHONY: install 61 65 install: all install_dirs install_components install_configuration install_libraries install_documentation install_share 62 66 63 67 .PHONY: install_dirs 64 68 install_dirs: -
conf/Makefile
r5f4d9c3 rcfdf333 1 1 include ../config.mak 2 3 .PHONY: all 4 all: compiledic.conf cor.conf dgc.conf dgp.conf gph.conf grp.conf gue.conf kor.conf lem.conf mar.conf ser.conf utt.conf 5 6 %.conf: %.conf.m4 7 m4 --define=LANG_DIR=${LANG_DIR} --define=LIB_DIR=${LIB_DIR} $< > $@ 8 9 10 .PHONY: clean 11 clean: 12 rm *.conf 2 13 3 14 .PHONY: install -
conf/cor.conf.m4
rf712e16 rcfdf333 11 11 # parameter_name [=] value 12 12 # 13 dictionary-home = PATH_PREFIX/share/utt13 dictionary-home = LANG_DIR 14 14 process = W -
conf/dgc.conf.m4
rf712e16 rcfdf333 11 11 # parameter_name [=] value 12 12 # 13 symbols = PATH_PREFIX/share/utt/pl_PL.ISO-8859-2/pl_PL.ISO-8859-2.sym 13 categories = LANG_DIR/cats.dgc 14 grammar = LANG_DIR/gram.dgc 15 outputfile = LANG_DIR/gram.dgp -
conf/dgp.conf.m4
rf712e16 rcfdf333 12 12 # 13 13 14 grammar = PATH_PREFIX/share/utt/gram.dgp14 grammar = LANG_DIR/gram.dgp 15 15 process = W 16 16 process = BOS -
conf/grp.conf.m4
rf712e16 rcfdf333 11 11 # parameter_name [=] value 12 12 # 13 macros = PATH_PREFIX/lib/utt/terms.m413 macros = LIB_DIR/terms.m4 14 14 tags=uam 15 15 -
conf/gue.conf.m4
rf712e16 rcfdf333 11 11 # parameter_name [=] value 12 12 # 13 dictionary-home = PATH_PREFIX/share/utt13 dictionary-home = LANG_DIR 14 14 process = W -
conf/kor.conf.m4
rf712e16 rcfdf333 11 11 # parameter_name [=] value 12 12 # 13 dictionary-home = PATH_PREFIX/share/utt14 weights = PATH_PREFIX/share/utt/weights.kor13 dictionary-home = LANG_DIR 14 weights = LANG_DIR/weights.kor 15 15 threshold = 1.0 16 16 process=W -
conf/lem.conf.m4
rf712e16 rcfdf333 11 11 # parameter_name [=] value 12 12 # 13 dictionary-home = PATH_PREFIX/share/utt13 dictionary-home = LANG_DIR 14 14 process = W -
conf/mar.conf.m4
rf712e16 rcfdf333 11 11 # parameter_name [=] value 12 12 # 13 macros = PATH_PREFIX/lib/utt/terms.m413 macros = LIB_DIR/terms.m4 14 14 tags=uam 15 15 -
src/common/common.cc
r5f4d9c3 rcfdf333 109 109 // obsluga systemowego pliku konfiguracyjnego dla programu 110 110 sprintf(config_file, "%s/%s.conf", SYSTEM_CONFIG_DIR, program_name); 111 111 112 if (file_accessible(config_file) == 0) { 112 113 if (cmdline_parser_configfile(config_file, -
src/common/common.d
r5f4d9c3 rcfdf333 1 common.o: ../common/common.cc ../common/common.h ../common/../lib/const.h \ 2 ../common/../dgp/cmdline.h -
src/lem/Makefile
r5f4d9c3 rcfdf333 1 include ../../config.mak 2 1 3 LDFLAGS += -static 2 4 CXXFLAGS += -O2 -fpermissive … … 40 42 rm cmdline.* || true 41 43 42 copy: 43 ifdef UTT_BIN_DIR 44 cp lem $(UTT_BIN_DIR) 44 .PHONY: install 45 install: 46 ifdef BIN_DIR 47 install -m 0755 lem $(BIN_DIR) 45 48 endif 49 50 .PHONY: uninstall 51 uninstall: 52 ifdef BIN_DIR 53 rm $(BIN_DIR)/lem 54 endif -
src/lem/main.cc
r5f4d9c3 rcfdf333 33 33 lem = new AuxLem(dictionary); 34 34 else 35 fprintf(stderr,"lem: Invalid dictionary file extension.\n");35 fprintf(stderr,"lem: Dictionary file not found.\n"); 36 36 37 37 Words tab; -
src/lib/const.h
r5f4d9c3 rcfdf333 21 21 22 22 // katalogi z plikami konfiguracyjnymi 23 #define SYSTEM_CONFIG_DIR "/ usr/local/etc/utt"23 #define SYSTEM_CONFIG_DIR "/etc/utt" 24 24 #define USER_CONFIG_DIR "~/.utt"
Note: See TracChangeset
for help on using the changeset viewer.