aboutsummaryrefslogtreecommitdiffhomepage
path: root/data/doc/sisu/markup-samples/manual/Rakefile
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-02-05 18:38:18 -0500
committerRalph Amissah <ralph@amissah.com>2014-02-05 18:38:18 -0500
commit9f8f2879231f7ffa5fa1906babd31ea6af88331a (patch)
treef819b41031608703385f02d1532598ee40dcb477 /data/doc/sisu/markup-samples/manual/Rakefile
parentdebian/changelog (5.3.1-1) (diff)
parentmanual Rakefile, README & minor config adjustment (diff)
Merge tag 'sisu_5.3.2' into debian/sid
SiSU 5.3.2
Diffstat (limited to 'data/doc/sisu/markup-samples/manual/Rakefile')
-rw-r--r--data/doc/sisu/markup-samples/manual/Rakefile25
1 files changed, 22 insertions, 3 deletions
diff --git a/data/doc/sisu/markup-samples/manual/Rakefile b/data/doc/sisu/markup-samples/manual/Rakefile
index 1d9b5414..e389856f 100644
--- a/data/doc/sisu/markup-samples/manual/Rakefile
+++ b/data/doc/sisu/markup-samples/manual/Rakefile
@@ -169,7 +169,7 @@ def notice
#{project_details.name}
#{project_details.rake_project}
-This rake file is to assist with having sisu markup files under po4a
+This rake file is primarily to assist with having sisu markup files under po4a
translation management. It assumes that the source language files are placed
under the sub-directory identifying the source language set, which is currently
#{language.source}
@@ -190,6 +190,15 @@ For a more detailed and up to date task list use:
end
self
end
+def generate
+ def readme
+ system(%{ruby ../../../../../bin/sisu6 --txt -v --no-manifest --dump='../../../../../..' en/README.ssm})
+ end
+ def manpage
+ system(%{ruby ../../../../../bin/sisu6 --manpage -v --no-manifest --dump='../../../../../../man/man1' en/sisu.ssm})
+ end
+ self
+end
def tasks
system('rake -T')
end
@@ -341,8 +350,8 @@ def distclean
end
#% task lists
-desc "runs make (see its description below)"
-task :default => [:make]
+desc "help"
+task :default => [:help]
desc "assist with having sisu markup files managed by po4a
create configuration files, and language directories and
populate them with po4a pot & po files for translation and
@@ -369,6 +378,10 @@ and File.directory?(dir.po)
else
task :make! => [:build_]
end
+desc "generate sisu manpage sisu.1"
+task :manpage => [:manpage_]
+desc "generate sisu README"
+task :readme => [:readme_]
#% task actions
task :project_help_ do
@@ -401,4 +414,10 @@ end
task :notice_rebuild_ do
notice.default(:rebuild)
end
+task :manpage_ do
+ generate.manpage
+end
+task :readme_ do
+ generate.readme
+end
__END__