update INSTALL section
[opensuse:osc.git] / README
1 osc -- opensuse-commander with svn like handling
2
3 >>> BUG: at the moment, 'up' overwrites files with
4          local modifications.
5
6
7 Please send patches to poeml@suse.de, or work directly on
8 https://forgesvn1.novell.com/svn/opensuse/trunk/buildservice/src/clientlib/python/osc/
9
10
11 INSTALLATION:
12
13         python setup.py build
14         python setup.py install
15         # create a symlink 'osc' in your path pointing to osc.py.
16         ln -s osc-wrapper.py /usr/bin/osc
17
18 Alternatively, you can directly use osc-wrapper.py from the source dir
19
20
21 The program needs the following python packages installed (that's their names
22 on SUSE anyway): 
23         pyxml 
24         python-elementtree
25
26
27
28
29 CONFIGURATION:
30
31 For authentication, put your account data into your ~/.netrc file, like this
32 line:
33         machine api.opensuse.org login $login password $pass 
34
35
36
37
38 USAGE EXAMPLES:
39
40 osc ls                          # list projects
41 osc ls Apache                   # list packages in a project 
42 osc ls Apache subversion        # list files of package of a project
43
44 # check out 
45 osc co Apache                   # entire project
46 osc co Apache subversion        # a package
47 osc co Apache subversion foo    # single file
48
49 # update working copy
50 osc up
51 osc up <directory>
52
53 # check in
54 osc ci                          # current dir
55 osc ci <dir>
56 osc ci file1 file2 ...
57
58 # show status
59 osc st
60 osc st <directory>
61
62 # initialize a source directory to be a 
63 # working copy of project <prj> package <pac>
64 osc init <prj> <pac>
65
66 # schedule file foo to be added / deleted
67 osc add foo
68 osc rm foo
69
70 # add all unknown files and remove all missing files
71 osc addremove
72
73 # show diff
74 osc diff [file]
75
76 # show build results (xml)
77 osc results
78 osc results [platform]
79
80 # show logfile (must be run from workingdir)
81 osc log <platform> <arch>
82
83 # show platforms
84 osc platforms
85 # show platforms used by project Apache
86 osc platforms Apache
87
88 # show various xml meta
89 osc meta Apache
90 osc meta Apache subversion
91 osc id username
92