Changeset 16056 for lang/gauche
- Timestamp:
- 07/21/08 10:03:35 (5 years ago)
- Location:
- lang/gauche/oldtype/branches/stable
- Files:
-
- 7 modified
-
Kahua/oldtype/oldtype/svn.scm (modified) (2 diffs)
-
Kahua/oldtype/oldtype/util.kahua (modified) (1 diff)
-
Kahua/oldtype/oldtype/version.kahua (modified) (1 diff)
-
bin/batch.sh (modified) (1 diff)
-
bin/convert.sh (modified) (2 diffs)
-
bin/update.sh (modified) (1 diff)
-
src/test.scm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/gauche/oldtype/branches/stable/Kahua/oldtype/oldtype/svn.scm
r15941 r16056 39 39 (export init 40 40 commit 41 clean 41 42 status 42 43 get-fullpath … … 122 123 123 124 125 (define-method clean ((self <svn-work>)) 126 ;; mkdir 127 (remove-directory* (get-fullpath self)) 128 #t) 129 130 124 131 (define-method save-text-list ((self <svn-work>) wikiname text-list) 125 132 (with-output-to-file (format "~a/edit/~a.ot" (get-fullpath self) wikiname) -
lang/gauche/oldtype/branches/stable/Kahua/oldtype/oldtype/util.kahua
r15945 r16056 387 387 (begin 388 388 (commit work) 389 (clean work) 389 390 (set! nodes 390 391 (p/ -
lang/gauche/oldtype/branches/stable/Kahua/oldtype/oldtype/version.kahua
r15941 r16056 7 7 8 8 ;;--------------------------------------------------------- 9 (define *oldtype-version* "0.3. 1")9 (define *oldtype-version* "0.3.2") -
lang/gauche/oldtype/branches/stable/bin/batch.sh
r15941 r16056 29 29 30 30 function task () { 31 ${OT_HOME}/bin/update.sh && 31 force=$1 32 echo [[info]] task start 33 ${OT_HOME}/bin/update.sh ${force} && 32 34 ${OT_HOME}/bin/ot_AllPages && 33 35 ${OT_HOME}/bin/ot_RecentChanges && 34 36 ${OT_HOME}/command/blog && 35 ${OT_HOME}/bin/convert.sh &&36 37 ${OT_HOME}/bin/add.sh && 37 ${OT_HOME}/bin/commit.sh 38 ${OT_HOME}/bin/commit.sh && 39 ${OT_HOME}/bin/update.sh ${force} && 40 ${OT_HOME}/bin/convert.sh 38 41 #run-parts ${OT_HOME}/hook 39 echo -n [ info] sleep...40 sleep 142 echo -n [[info]] sleep... 43 sleep 2 41 44 echo wakeup 42 45 } 43 46 47 cnt=0 44 48 while : 45 49 do 46 task 50 if [ "${cnt}" = "0" ] ; then 51 task 1 52 else 53 task 0 54 fi 55 56 cnt=`expr ${cnt} + 1` 57 if [ "${cnt}" -gt "10" ] ; then 58 cnt=0 59 fi 47 60 done 48 49 -
lang/gauche/oldtype/branches/stable/bin/convert.sh
r15941 r16056 15 15 if [ "$?" = "0" ] ; then 16 16 /bin/mv -f ../_out/${base}.sexp.tmp ../_out/${base}.sexp 17 /bin/cp -f ${src} ../_out/${base}.ot 17 18 else 18 19 exit $? … … 46 47 function convert_p() { 47 48 base=$1 48 # echo "file is ${base}.ot" 49 echo ${base} | grep "!" > /dev/null 50 generated=$? 51 if [ "0" = "$generated" ] ; then 52 diffs=`_svn t diff ${base}.ot | wc -l | awk '{ print $1; }'` 53 # echo diffs : ${diffs} 54 [ "0" != "${diffs}" -o ! -f ../_out/${base}.sexp ] 55 status=$? 56 57 ## TODO: fix me ( Must implement !xxxxx.ot contents converttion check ) 49 status=1 50 if [ ! -f "../_out/${base}.ot" ] ; then 51 # doesn't exist yet 58 52 status=0 59 60 # echo status : ${status} 61 else62 [ "${base}.ot" -nt ../_out/${base}.sexp ]63 status=$?64 # echo status : ${status} 53 else 54 diff "${base}.ot" "../_out/${base}.ot" > /dev/null 55 if [ "$?" != "0" ] ; then 56 # difference exist 57 status=0 58 fi 65 59 fi 66 60 return $status -
lang/gauche/oldtype/branches/stable/bin/update.sh
r13289 r16056 24 24 cd ${OT_EDITHOME} 25 25 26 prev=`_svn t info | grep Revision: | awk '{ print $2; }'` 26 27 _svn t update 28 curr=`_svn t info | grep Revision: | awk '{ print $2; }'` 27 29 28 30 popd 31 32 if [ "$1" = "1" ] ; then 33 echo "[[info]] force update" 34 # force option 35 status=0 36 else 37 echo "[[info]] revision[$prev]=>[$curr]" 38 [ "$prev" != "$curr" ] 39 status=$? 40 fi 41 exit $status -
lang/gauche/oldtype/branches/stable/src/test.scm
r15941 r16056 91 91 92 92 (test "ago string of lineno 1 <oldtype-timeline>" 93 " ( 3months ago)"93 " (4 months ago)" 94 94 (lambda () 95 95 (get-ago (log-by-lineno oldtype-timeline 1)))) 96 96 (test "ago string of lineno 1 <oldtype-page>" 97 " ( 3months ago)"97 " (4 months ago)" 98 98 (lambda () 99 99 (get-ago oldtype-page 1))) … … 119 119 (test "date,ago,rank,committer of lineno 1 <oldtype-page>" 120 120 '((date . "2008-03-20 21:36 (+0900)") 121 (ago . " ( 3months ago)")121 (ago . " (4 months ago)") 122 122 (rank . 5) 123 123 (committer . "kiyoka")) … … 185 185 186 186 (let1 work 187 (make <svn-work> :url "http://genkan.sumibi.org/svn/newtype" :user " anonymous" :pass "anonymous" :basepath "/Users/kiyoka/work/tmp")187 (make <svn-work> :url "http://genkan.sumibi.org/svn/newtype" :user "kahua" :pass "kahua" :basepath "/Users/kiyoka/work/tmp") 188 188 189 189 (test "Initialize svn work directory" … … 195 195 '("" "") 196 196 (lambda () 197 (status work "_kiyoka"))) 197 (begin 198 (display (get-fullpath work)) 199 (newline) 200 (status work "_kiyoka")))) 198 201 199 202 (test "status of wikiname (some changes)" … … 202 205 (save-text-list work 203 206 "test" 204 '("UnitTest用ページ。" "----" "##(comment)"))207 `("UnitTest用ページ。" ,(number->string (sys-time)))) 205 208 (car (status work "test")))) 206 209 … … 210 213 #t 211 214 (lambda () 212 (commit work) ))))213 215 (commit work) 216 (clean work))))) 214 217 (test-end) 215 218
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)