[asl-commit] ActiveSambaLdap r55:

null at cozmixng.org null at cozmixng.org
Fri Aug 3 22:33:39 EDT 2007


retro	2007-08-04 11:33:36 +0900 (Sat, 04 Aug 2007)

  New Revision: 55

  Added directories:
    trunk/html/
    trunk/misc/
  Added files:
    trunk/html/index.html
    trunk/misc/rd2html.rb
  Modified files:
    trunk/README.en

  Log:


  Added: trunk/html/

  Added: trunk/misc/

  Modified: trunk/README.en (+1 -1)
===================================================================
--- trunk/README.en	2006-11-17 16:49:27 +09:00 (rev 54)
+++ trunk/README.en	2007-08-04 11:33:36 +09:00 (rev 55)
@@ -239,7 +239,7 @@
 
 : default_user_gid
    Default GID of group to which user belongs. Default is
-  'Domain Users' group.
+   'Domain Users' group.
 
 : default_computer_gid
    Default GID of group to which computer belongs. Default

  Added: trunk/html/index.html (+17 -0)
===================================================================
--- trunk/html/index.html	2006-11-17 16:49:27 +09:00 (rev 54)
+++ trunk/html/index.html	2007-08-04 11:33:36 +09:00 (rev 55)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE html 
+  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
+<head>
+<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
+<title>ActiveSambaLdap</title>
+</head>
+<body>
+<h1>ActiveSambaLdap</h1>
+<ul>
+  <li><a href="README.html">README</a></li>
+  <li><a href="NEWS.html">NEWS</a></li>
+</ul>
+</body>
+</html>

  Property changed: trunk/misc/rd2html.rb (+0 -0)
___________________________________________________________________
Name: svn:executable
   + *

  Added: trunk/misc/rd2html.rb (+42 -0)
===================================================================
--- trunk/misc/rd2html.rb	2006-11-17 16:49:27 +09:00 (rev 54)
+++ trunk/misc/rd2html.rb	2007-08-04 11:33:36 +09:00 (rev 55)
@@ -0,0 +1,42 @@
+#!/usr/bin/env ruby
+
+top = File.expand_path(File.join(File.dirname(__FILE__), ".."))
+html_dir = File.join(top, "html")
+
+require "fileutils"
+
+css = "base.css"
+kcode = "utf8"
+
+options = [
+  "-I#{File.join(top, 'misc')}",
+  "-S",
+  "rd2",
+  "-rrd/rd2html-lib",
+  "--out-code=#{kcode}",
+  proc do |f|
+    "--html-title=#{File.basename(f)}"
+  end,
+#   proc do |f|
+#     "--with-css=#{css}"
+#   end,
+  proc do |f|
+    f
+  end
+]
+
+Dir[File.join(top, "*.{ja,en}")].each do |f|
+  if /(README|NEWS)\.(ja|en)\z/ =~ f
+    args = options.collect do |x|
+      if x.respond_to?(:call)
+        x.call(f)
+      else
+        x
+      end
+    end
+    output_base = File.basename(f).sub(/(ja|en)\z/, "html.\\1")
+    File.open(File.join(html_dir, output_base), "w") do |out|
+      out.puts(`ruby #{args.flatten.join(' ')}`)
+    end
+  end
+end



More information about the asl-commit mailing list