aboutsummaryrefslogtreecommitdiff
path: root/scm/dictrans.scm
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-06-01 16:53:17 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-06-01 16:53:17 +0000
commit76aa8f7cedc2f74872f84953be7cb232f743f877 (patch)
tree84924a66d385fe2019f53875a63340a7100a25f8 /scm/dictrans.scm
parentf9ce050247243d9476fc6a0ce6f472ce95e525a9 (diff)
downloadellinika-76aa8f7cedc2f74872f84953be7cb232f743f877.tar.gz
ellinika-76aa8f7cedc2f74872f84953be7cb232f743f877.tar.bz2
* scm/dictrans.scm: Allow to call without arguments if --cleanup
option is given. * configure.ac (AC_CONFIG_FILES): Add data/pl/Makefile * data/*.xml: Move to data/ru * data/Makefile.am: Rewrite: * data/ru: New directory * data/pl: New directory * data/pl/Makefile.am: New file. * data/pl/setup.xml: New file. * data/pl/0.xml: New file. git-svn-id: file:///home/puszcza/svnroot/ellinika/trunk@507 941c8c0f-9102-463b-b60b-cd22ce0e6858
Diffstat (limited to 'scm/dictrans.scm')
-rw-r--r--scm/dictrans.scm9
1 files changed, 7 insertions, 2 deletions
diff --git a/scm/dictrans.scm b/scm/dictrans.scm
index 6c55765..7161e2d 100644
--- a/scm/dictrans.scm
+++ b/scm/dictrans.scm
@@ -992,7 +992,7 @@ Informational options:
992 (getopt-long (command-line) grammar)) 992 (getopt-long (command-line) grammar))
993 993
994 994
995(if (null? input-files) 995(if (and (null? input-files) (not cleanup-option))
996 (begin 996 (begin
997 (display "Input files not specified\n" (current-error-port)) 997 (display "Input files not specified\n" (current-error-port))
998 (exit 1))) 998 (exit 1)))
@@ -1026,7 +1026,12 @@ Informational options:
1026 1026
1027 (if cleanup-option 1027 (if cleanup-option
1028 (cleanup-db conn)) 1028 (cleanup-db conn))
1029 1029
1030 (if (null? input-files)
1031 (begin
1032 (sql-connect-close conn)
1033 (exit 0)))
1034
1030 (get-dict-index conn) 1035 (get-dict-index conn)
1031 1036
1032 (insert-categories conn) 1037 (insert-categories conn)

Return to:

Send suggestions and report system problems to the System administrator.