Changeset 15232 for lang/gauche

Show
Ignore:
Timestamp:
07/06/08 00:54:46 (5 months ago)
Author:
kiyoka
Message:

Supported nolist command.

Location:
lang/gauche/oldtype/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lang/gauche/oldtype/trunk/Kahua/oldtype/oldtype/util.kahua

    r15055 r15232  
    349349               (tr/ (td/ 
    350350                     (input/ (@/ (type "submit") (value "Submit comment")))))))) 
    351                      
     351 
     352      ;; no listing to !RecentChanges 
     353      ((nolist) 
     354       (p/ "")) 
     355 
    352356      (else 
    353357       `(p/ ,(format "!!Error : no such macro \"~a\"!!" command)))))) 
  • lang/gauche/oldtype/trunk/bin/ot_RecentChanges

    r10961 r15232  
    2020      eval ${line} 
    2121      name=`basename ${name} .ot` 
    22       echo "- ##(timestamp ${commit_utc}) ##(since ${commit_utc}): [[${name}]] by ([[${commit_author}]])" 
     22      if `grep '##(nolist)' ${OT_EDITHOME}/edit/${name}.ot > /dev/null` ; then 
     23        status=0 
     24      else 
     25        echo "- ##(timestamp ${commit_utc}) ##(since ${commit_utc}): [[${name}]] by ([[${commit_author}]])" 
     26      fi 
    2327  fi 
    2428done | sort -r | head -${DISPLAY_LINES} >> ${OT_EDITHOME}/edit/!RecentChanges.ot.tmp 
  • lang/gauche/oldtype/trunk/command/blog

    r14617 r15232  
    2222                           "[.]([0-9]+)"))))) 
    2323 
    24 (define (output-blog save-filename entrylist) 
     24(define (output-blog save-filename entrylist appendix) 
    2525  (with-output-to-file save-filename 
    2626    (lambda () 
     
    3737                  (string-append "* [[" (oldtype:otpath->wikiname filename) "]]")))) 
    3838             (for-each print (port->string-list (current-input-port)))))) 
    39        entrylist)))) 
     39       entrylist) 
     40      (display appendix) 
     41      (newline)))) 
    4042 
    4143 
     
    5860               (cons 
    5961                ot-blog-header 
    60                 (take (ot-blog-entrylist) ot-new-entry-limit))) 
     62                (take (ot-blog-entrylist) ot-new-entry-limit)) 
     63               "") 
    6164  (output-blog-list (string-append ot-blog ".list.ot") 
    6265                    (ot-blog-entrylist)) 
     
    6871                    (cons 
    6972                     ot-blog-header 
    70                      (reverse entries))))) 
     73                     (reverse entries)) 
     74                    "##(nolist)"))) 
    7175   (oldtype:grouping-blog-entries 
    7276    (ot-blog-entrylist)))