From 0779d7cd22939bdcffde22b35fbdbb71525cfa2d Mon Sep 17 00:00:00 2001 From: Guido Guenther Date: Tue, 26 Jun 2007 19:06:01 +0300 Subject: how to start a package from scratch --- docs/chapters/import.sgml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/chapters/import.sgml b/docs/chapters/import.sgml index 30718f31..18c331cb 100644 --- a/docs/chapters/import.sgml +++ b/docs/chapters/import.sgml @@ -1,5 +1,6 @@ Importing Sources + Importing already existing &debian; packages Imporing an already exsting debian package into a git repository is as easy as: @@ -14,6 +15,7 @@ and options. + Importing a new upstream version Change into your git repository, make sure it has all local @@ -41,6 +43,7 @@ + Converting an existing &git; repository @@ -94,4 +97,25 @@ upstream-branch=theupstream-branch work as expected. + + + Starting a Debian package from scratch + + So far we assumed you already have a &debian; package to start with but + what if you want to start a new package? First create an empty repository: + + +mkdir package-0.1 +cd package-0.1 +git-init + + Then you import the upstream sources, branch of the + upstream branch and add the debian files (e.g. via dh_make): + +&git-import-orig -u 0.1 ../package-0.1.tar.gz +git-branch upstream +dh_make + + That's it, you're done. + -- cgit v1.2.3