Uhofemeier (Talk | contribs) |
(→How to use the MeeGo / OBS Command Line Interface, Part 2) |
||
| Line 1: | Line 1: | ||
| - | = How to use the MeeGo / OBS Command Line | + | = How to use the MeeGo / OBS Command Line Tools, Part 2 = |
You've used the set up the 'osc' tool in [[Build_Infrastructure/Packagers_Developers/CLI_Part_1|Part 1]] and now it's time to check out your project for local editing and build. | You've used the set up the 'osc' tool in [[Build_Infrastructure/Packagers_Developers/CLI_Part_1|Part 1]] and now it's time to check out your project for local editing and build. | ||
| Line 8: | Line 8: | ||
$ osc ls | $ osc ls | ||
| - | + | Trunk | |
| - | + | Trunk:Testing | |
| - | + | devel:base | |
| - | + | ||
| - | + | ||
| - | + | ||
... | ... | ||
home:<login> | home:<login> | ||
| Line 41: | Line 38: | ||
If using MeeGo OBS: | If using MeeGo OBS: | ||
| - | $ osc branch | + | $ osc branch Trunk:Testing <packagename> |
| + | |||
| + | Tips, use 'bco' subcommand alias will make osc checkout the branched package meanwhile: | ||
| + | |||
| + | $ osc bco Trunk:Testing <packagename> | ||
== Summary and next steps == | == Summary and next steps == | ||
Contents |
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.
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 Trunk Trunk:Testing devel:base ... home:<login> ...
Create a directory for doing work and change directory into it:
$ mkdir ~/obs $ cd ~/obs
This is a lot like using Subversion or CVS as the model is 'checkout' and 'checkin' (abbreviated 'co' and 'ci', respectively):
$ osc 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>
If using MeeGo OBS:
$ osc branch Trunk:Testing <packagename>
Tips, use 'bco' subcommand alias will make osc checkout the branched package meanwhile:
$ osc bco Trunk:Testing <packagename>
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.