1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
// vim:set filetype=asciidoc:
[[emptypkg]]
=== Cherry-pick templates
Here is an example of creating a simple Debian package from a zero-content source in an empty directory.
This is a good way to obtain all the template files without cluttering the upstream source tree you are working on.
Let's assume this empty directory to be *debhello-0.1*.
----
include::../examples/debhello-0.1_build-1/step000.slog[]
----
Let's generate the maximum amount of template files.
Let's also use the "`*-p* __debhello__ *-t -u* __0.1__ *-r* __1__`" options to create the missing upstream tarball with default *-x3* and *T* options.
----
include::../examples/debhello-0.1_build-1/step200.slog[lines=1..3]
...
----
Let's inspect generated template files.
----
include::../examples/debhello-0.1_build-1/step201.slog[]
----
Now you can copy any of these generated template files in the __debhello-0.1/__**debian/** directory to your package as needed while renaming them as needed.
|