Changeset 15746 for lang/gauche
- Timestamp:
- 07/13/08 18:54:44 (4 months ago)
- Location:
- lang/gauche/oldtype/trunk
- Files:
-
- 1 added
- 7 modified
-
Kahua/oldtype/oldtype/page.scm (modified) (1 diff)
-
Kahua/oldtype/oldtype/timeline.scm (modified) (1 diff)
-
Kahua/oldtype/oldtype/version.kahua (modified) (1 diff)
-
config.sh (modified) (2 diffs)
-
src/Makefile (modified) (1 diff)
-
src/Test.no-timeline.sexp.master (added)
-
src/oldtype_to (modified) (1 diff)
-
src/test.scm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/gauche/oldtype/trunk/Kahua/oldtype/oldtype/page.scm
r14347 r15746 82 82 83 83 84 ;; Parsing wiki format 85 ;; 86 ;; In case of log-file or ann-file is #f, this function takes only parse action. 87 ;; 84 88 (define-method parse ((self <oldtype-page>) wiki-port log-file ann-file) 85 89 (let1 timeline (make <oldtype-timeline> :name (name-of self)) 86 90 (set! (timeline-of self) 87 (parse timeline log-file ann-file))) 91 (if (and log-file ann-file) 92 (parse timeline log-file ann-file) 93 timeline))) 88 94 (set! (sxml-of self) 89 95 (oldtype:sxml->internal -
lang/gauche/oldtype/trunk/Kahua/oldtype/oldtype/timeline.scm
r13593 r15746 70 70 ;; vector of <oldtype-log> in page 71 71 (annotation :accessor annotation-of :init-keyword :annotation 72 :init-value ' ())72 :init-value '#()) 73 73 ;; vector of text in page 74 74 (text :accessor text-of :init-keyword :text 75 :init-value ' ())75 :init-value '#()) 76 76 ;; distribution of revision 77 77 (distribution :accessor distribution-of :init-keyword :distribution -
lang/gauche/oldtype/trunk/Kahua/oldtype/oldtype/version.kahua
r15250 r15746 7 7 8 8 ;;--------------------------------------------------------- 9 (define *oldtype-version* "0.3. 0")9 (define *oldtype-version* "0.3.1") -
lang/gauche/oldtype/trunk/config.sh
r8342 r15746 2 2 3 3 # variables 4 export OT_MASTER= nil# t or nil4 export OT_MASTER=t # t or nil 5 5 6 6 export OT_SITE=/home/kiyoka/work/site-unstable … … 8 8 export OT_PASS_BACKEND=${OT_PASSWORD} 9 9 export OT_USER_LOCAL="kiyoka" 10 export OT_SVNURL=http://genkan.sumibi.org/svn/ oldtype10 export OT_SVNURL=http://genkan.sumibi.org/svn/newtype -
lang/gauche/oldtype/trunk/src/Makefile
r14228 r15746 5 5 all: log.txt Test.ann.txt Entry1.ann.txt Entry2.ann.txt 6 6 gosh -I ../Kahua/oldtype ./oldtype_to internal ../edit/Test.ot log.txt Test.ann.txt > Test.sexp 7 gosh -I ../Kahua/oldtype ./oldtype_to internal ../edit/Test.ot > Test.no-timeline.sexp 7 8 gosh -I ../Kahua/oldtype ./oldtype_to internal ../edit/Entry1.ot log.txt Entry1.ann.txt > Entry1.sexp 8 9 gosh -I ../Kahua/oldtype ./oldtype_to internal ../edit/Entry2.ot log.txt Entry2.ann.txt > Entry2.sexp -
lang/gauche/oldtype/trunk/src/oldtype_to
r14263 r15746 145 145 (case type 146 146 ('internal 147 (when (< 1 (length rest)) 148 (let1 oldtype-page (parse (make <oldtype-page> :name wikiname) input-port (car rest) (cadr rest)) 149 (pretty-print-sexp (serialize oldtype-page))))) 147 (if (< 1 (length rest)) 148 (let1 oldtype-page (parse (make <oldtype-page> :name wikiname) input-port (car rest) (cadr rest)) 149 (pretty-print-sexp (serialize oldtype-page))) 150 (let1 oldtype-page (parse (make <oldtype-page> :name wikiname) input-port #f #f) 151 (pretty-print-sexp (serialize oldtype-page))))) 150 152 ('sxml 151 153 (let1 sxml (oldtype-parse input-port) -
lang/gauche/oldtype/trunk/src/test.scm
r15741 r15746 36 36 (open-input-string converted-str))) 37 37 (let ((oldtype-page #f) 38 (oldtype-page-no-timeline #f) 38 39 (oldtype-timeline #f) 39 (loaded (with-input-from-file "Test.sexp.master" 40 (lambda () 41 (read))))) 42 40 (loaded 41 (with-input-from-file "Test.sexp.master" 42 (lambda () 43 (read)))) 44 (loaded-no-timeline 45 (with-input-from-file "Test.no-timeline.sexp.master" 46 (lambda () 47 (read))))) 43 48 (test-start "serialize,deserialize") 44 49 … … 54 59 55 60 (test-section "oldtype-page") 56 (set! oldtype-page (parse (make <oldtype-page> :name "Test") input-port log-file ann-file)) 61 (set! oldtype-page 62 (parse (make <oldtype-page> :name "Test") input-port log-file ann-file)) 63 (port-seek input-port 0) 64 (set! oldtype-page-no-timeline 65 (parse (make <oldtype-page> :name "Test") input-port #f #f)) 66 57 67 (let1 serialized (serialize oldtype-page) 58 (test "serialized == DATA "68 (test "serialized == DATA (1) " 59 69 loaded 60 70 (lambda () (serialize oldtype-page))) 61 71 62 72 (test "serialized == deserialized" serialized (lambda () 63 73 (serialize 64 74 (deserialize 65 75 (make <oldtype-page>) 66 serialized))))) 76 serialized)))) 77 (test "serialized == DATA (2) " 78 loaded-no-timeline 79 (lambda () (serialize oldtype-page-no-timeline)))) 67 80 (test-end) 68 81 … … 187 200 "M" 188 201 (lambda () 189 (sys-system (format "echo 'a' >> ~a/~a/~a" (get-fullpath work) "edit" " _kiyoka.ot"))190 (car (status work " _kiyoka"))))191 202 (sys-system (format "echo 'a' >> ~a/~a/~a" (get-fullpath work) "edit" "test.ot")) 203 (car (status work "test")))) 204 192 205 (when 193 206 #f … … 196 209 (lambda () 197 210 (commit work))))) 198 211 199 212 (test-end) 200 213
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)