Subversion Repositories SvarDOS

Rev

Rev 636 | Rev 720 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 636 Rev 679
Line 4... Line 4...
4
 
4
 
5
 
5
 
6
 
6
 
7
=== HOW TO CREATE A PACKAGE? ==================================================
7
=== HOW TO CREATE A PACKAGE? ==================================================
8
 
8
 
9
Packaging software for SvarDOS implies creating a ZIP package that can be
9
Packaging software for SvarDOS implies creating an SVP package that can be
10
installed with "pkg". This file will not discuss this aspect, you should find
10
installed with "pkg". This file will not discuss this aspect, you should find
11
all necessary information about this topic in the SvarDOS help:
11
all necessary information about this topic in the SvarDOS help:
12
 
12
 
13
 * help pkgfmt
13
 * help pkgfmt
14
 * help pkgrules
14
 * help pkgrules
Line 38... Line 38...
38
on your disk. Inside you will find all SvarDOS packages.
38
on your disk. Inside you will find all SvarDOS packages.
39
 
39
 
40
 
40
 
41
=== UPLOADING A NEW PACKAGE ===================================================
41
=== UPLOADING A NEW PACKAGE ===================================================
42
 
42
 
43
So you have created this new SvarDOS ZIP package with some very cool software
43
So you have created this new SvarDOS SVP package with some very cool software
44
in it. Great! To upload it to the SvarDOS online repo, copy your zip package
44
in it. Great! To upload it to the SvarDOS online repo, copy your zip package
45
to your local svardos-packages directory. Then, instruct svn to add the new
45
to your local svardos-packages directory. Then, instruct svn to add the new
46
file(s) to the repo:
46
file(s) to the repo:
47
 
47
 
48
$ cd svardos-packages
48
$ cd svardos-packages
49
$ svn add package.zip
49
$ svn add package.svp
50
$ svn add package.src   <-- optional, only if the package has available sources
50
$ svn add package.zip   <-- optional, only if the package has available sources
51
 
51
 
52
Review the changes to make sure you added the right files:
52
Review the changes to make sure you added the right files:
53
$ svn st
53
$ svn st
54
 
54
 
55
...and if everything's all right, push (commit) the changes to the svn server:
55
...and if everything's all right, push (commit) the changes to the svn server:
Line 68... Line 68...
68
 
68
 
69
First, you need to rename the current package's filename so it becomes an
69
First, you need to rename the current package's filename so it becomes an
70
"alternative version":
70
"alternative version":
71
 
71
 
72
$ cd svardos-packages
72
$ cd svardos-packages
73
$ svn mv nasm.zip nasm-2.12.zip
73
$ svn mv nasm.svp nasm-2.12.svp
74
$ svn mv nasm.src nasm-2.12.src      <-- optional (only if package has sources)
74
$ svn mv nasm.zip nasm-2.12.zip      <-- optional (only if package has sources)
75
 
75
 
76
Then, add the new version as the "current" version:
76
Then, add the new version as the "current" version:
77
 
77
 
78
$ svn add nasm.zip
78
$ svn add nasm.svp
79
$ svn add nasm.src                   <-- optional (only if package has sources)
79
$ svn add nasm.zip                   <-- optional (only if package has sources)
80
 
80
 
81
Finally, review and commit your changes:
81
Finally, review and commit your changes:
82
 
82
 
83
$ svn st
83
$ svn st
84
$ svn commit -m 'updated NASM to version 2.13'
84
$ svn commit -m 'updated NASM to version 2.13'
Line 90... Line 90...
90
they proved to be harmful in some way, or if their licensing is not compatible
90
they proved to be harmful in some way, or if their licensing is not compatible
91
with SvarDOS distribution, etc. Removing a package means deleting it from the
91
with SvarDOS distribution, etc. Removing a package means deleting it from the
92
svn repository and commiting the change. Example:
92
svn repository and commiting the change. Example:
93
 
93
 
94
$ cd svardos-packages
94
$ cd svardos-packages
95
$ svn del package.zip
95
$ svn del package.svp
-
 
96
$ svn del package.zip       <-- only if zip with sources exists
96
$ svn commit -m 'removed package PACKAGE_NAME because (reason here)'
97
$ svn commit -m 'removed package PACKAGE_NAME because (reason here)'
97
 
98
 
98
 
99
 
99
======================================================================= EOF ===
100
======================================================================= EOF ===