Mailinglist Archive: yast-devel (36 mails)

< Previous Next >
Re: [yast-devel] Yast webservice - sharing .rake files
  • From: Ladislav Slezak <lslezak@xxxxxxx>
  • Date: Thu, 28 May 2009 18:21:37 +0200
  • Message-id: <4A1EBA11.5070602@xxxxxxx>
Ladislav Slezak napsal(a):
Existing tasks
--------------

git_check - checks whether the local and remote GIT repo are in sync
(e.g. no uncommitted changes...)

syntax_check - check syntax of all Ruby (*.rb) files

We should use both tasks in the package task, similar to 'make package' in
standard
Yast modules.

I have added 'package' task (the standard package task using Rake::PackageTask
class)
and 'dist' task which calls 'syntax_check', 'git_check' and then builds the
package
using 'package'.

Actually it would be better if we had 'package' and 'package-local' tasks, just
like
in Yast modules. Unfortunately rake doesn't allow to rename a task and
Rake::PackageTask doesn't accept any parameter to change the default task name.
(IMO it's a bug or missing feature, e.g. Rake::TestTask allows to name the test
task
as you wish.)

USE 'rake dist' TO BUILD THE DISTRIBUTION PACKAGE

Use 'rake package' if you want just to do a test build or for testing
(non-distribution) packages.

dist = package (in Yast)
package = package-local (in Yast)

--

Best Regards

Ladislav Slez√°k
Yast Developer
------------------------------------------------------------------------
SUSE LINUX, s.r.o. e-mail: lslezak@xxxxxxx
Lihovarsk√° 1060/12 tel: +420 284 028 960
190 00 Prague 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >