diff options
author | Ralph Amissah <ralph@amissah.com> | 2014-02-05 18:34:16 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2014-02-05 18:34:16 -0500 |
commit | f67352938fd43fe4bb9591311173e1601d4edbc7 (patch) | |
tree | 994f02957dff2cfe834ece7f7567bb12b486e2f8 /data/doc/sisu/markup-samples/manual/Rakefile | |
parent | v5 v6: sysenv, concordance redirected paths, watch (diff) |
manual Rakefile, README & minor config adjustmentsisu_5.3.2
Diffstat (limited to 'data/doc/sisu/markup-samples/manual/Rakefile')
-rw-r--r-- | data/doc/sisu/markup-samples/manual/Rakefile | 25 |
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__ |