Meego Wiki
Views

Build Infrastructure/Packagers Developers/CLI Part 2

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
m (Find the project to checkout)
Line 5: Line 5:
== Find the project to checkout ==
== Find the project to checkout ==
-
You can list projects you can check out using 'losc ls'. You will see your home project you created in the Web UI listed too:
+
You can list projects you can check out using 'osc ls'. You will see your home project you created in the Web UI listed too:
-
  $ losc ls
+
  $ osc ls
  MeeGo
  MeeGo
  MeeGo:Base:build
  MeeGo:Base:build
Line 17: Line 17:
  home:<login>
  home:<login>
  ...
  ...
-
 
+
 
== Change to your OBS area ==
== Change to your OBS area ==

Revision as of 22:14, 12 April 2011

Contents

How to use the MeeGo / OBS Command Line Interface, Part 2

You've used the set up the 'osc' tool in Part 1 and now it's time to check out your project for local editing and build.

Find the project to checkout

You can list projects you can check out using 'osc ls'. You will see your home project you created in the Web UI listed too:

$ osc ls
MeeGo
MeeGo:Base:build
MeeGo:Devel
MeeGo:Trunk
MeeGo:Trunk:Extra
MeeGo:Trunk:Extra:rebuild
...
home:<login>
...

Change to your OBS area

Create a directory for doing work and change directory into it:

$ mkdir ~/obs
$ cd ~/obs

Check out the desired project

This is a lot like using Subversion or CVS as the model is 'checkout' and 'checkin' (abbreviated 'co' and 'ci', respectively):

$ losc co home:<login>
A home:<login>
A home:<login>:bash
A home:<login>:bash/Makefile
...

You will now find your checked out project ready for modification and rebuild under home:<login>/<packagename>

Branching a package to your home project

If using community OBS:

$ losc branch MeeGo.com:Trunk:Testing <packagename> home:<login>:<whatever>

Summary and next steps

This guide gave an introduction on how to use the osc tool to checkout sources. The next page will cover building your project. Click TBD to open the 3rd part.

Personal tools