Update gbs build/localbuild document
authorZhang Qiang <qiang.z.zhang@intel.com>
Thu, 15 Mar 2012 14:53:41 +0000 (22:53 +0800)
committerxiaoqiang <xiaoqiang@xq-desktop.(none)>
Thu, 15 Mar 2012 14:57:37 +0000 (22:57 +0800)
README.rst
tools/gbs

index 95d43be..3de82bf 100644 (file)
@@ -166,9 +166,15 @@ configuration file by yourself.  Just make sure it looks like as below:
   user = <USER_NAME>
   passwd  = <PASSWORD in base64 string>
   passwdx = <PASSWORD encoded in base64 string>
+  [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 <subcmd>` to get the help message,
index 93d7478..e756656 100755 (executable)
--- 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:<userid>:gbs
+          $ gbs build <package git directory>
         ${cmd_option_list}
         """