From: Zhang Qiang Date: Thu, 15 Mar 2012 14:53:41 +0000 (+0800) Subject: Update gbs build/localbuild document X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dbc0d6b1f94583759ad4f17f811e2005f13bd563;p=tools%2Fgbs.git Update gbs build/localbuild document --- diff --git a/README.rst b/README.rst index 95d43be..3de82bf 100644 --- a/README.rst +++ b/README.rst @@ -166,9 +166,15 @@ configuration file by yourself. Just make sure it looks like as below: user = passwd = passwdx = + [localbuild] + build_cmd = /usr/bin/build + build_root= /var/tmp/build-root-gbs + su-wrapper= su -c + distconf=/usr/share/gbs/tizen-1.0.conf -In this configuration file, there are two sections: [common] is for general -setting, and [build] is for the options of gbs build. +In this configuration file, there are three sections: [common] is for general +setting, [build] section is for the options of gbs build, and [localbuild] +is for gbs localbuild. In the [build] section, the following values can be specified: @@ -182,6 +188,14 @@ passwd passwdx encoded OBS account user passwd, this key would be generated automaticlly. +In the [localbuild] section, the following values can be specified: +build_cmd + build script path for building RPMs in a chroot environment +build_root + patch for chroot environment +distconf + Specify distribution configure file + Usages ====== It's recommended to use `--help` or `help ` to get the help message, diff --git a/tools/gbs b/tools/gbs index 93d7478..e756656 100755 --- a/tools/gbs +++ b/tools/gbs @@ -160,8 +160,16 @@ class TizenPkg(cmdln.Cmdln): """${cmd_name}: test building for current pkg Usage: - gbs build [options] [OBS_project] + gbs build [options] [package git dir] + [package git dir] is optional, if not specified, current dir wuold + be used. + + Examples: + $ gbs build + $ gbs build -B Test + $ gbs build -B Test -T home::gbs + $ gbs build ${cmd_option_list} """