File: Rakefile

package info (click to toggle)
faceup 0.0.4-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 208 kB
  • sloc: lisp: 735; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 589 bytes parent folder | download | duplicates (3)
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