summaryrefslogtreecommitdiff
path: root/admin/Rakefile
blob: bc574fd6823c6e1d5713a725dc0edf811782ec8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
################################ -*- Ruby -*- #################################
# Common tasks
#

desc "Generate README.md"
task "readme" do
  sh "emacs", "-batch",
     "-l", "../../font-lock-tools-admin/font-lock-tools-admin.el",
     "-L", "../../el2markdown",
     "../faceup.el", "-f", "font-lock-tools-admin-write-readme"
end

desc "Generating html"
task "html" => ["readme"] do
  File.open(File.join("..", "README.html"), "w") do |fh|
    fh.puts("<head>")
    fh.puts("  <meta charset=\"UTF-8\">")
    fh.puts("</head>")
  end
  sh "Markdown.pl ../README.md >> ../README.html"
end