[[emptypkg]]
=== Cherry-pick templates

Here is an example of creating a simple Debian package from a zero content source on an empty directory.

This is a good platform to get all the template files without making a mess in 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 by specifying the *-x4* option.

Let's also use the ``*-p* 'debhello' *-t -u* '0.1' *-r* '1''' options to make the missing upstream tarball.

----
sys::[head -n3 ../examples/debhello-0.1_build-1/step200.slog]
 ...
sys::[grep -A3  '^I: sanity check of parameters' ../examples/debhello-0.1_build-1/step200.slog]
 ...
sys::[grep -A3  '^I: debmake -x' ../examples/debhello-0.1_build-1/step200.slog]
 ...
sys::[tail -n7  ../examples/debhello-0.1_build-1/step200.slog]
----

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.

TIP: The generated template files can be made more verbose by invoking the *debmake* command with the *-T* option (tutorial mode).
