[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#636977: RFS: boot-repair



On 01/03/2012 12:34 AM, yannubuntu@gmail.com wrote:
> 
>     Just FYI, you should use 2 branches, one for your upstream
>     code, and one containing that + the debian folder, so that
>     one can use "git-buildpackage".
> 
>     Cheers,
>     Thomas
> 
> 
> i read the git-buildpackage man, but i'm sorry i don't understand what
> to change in the GIT, nor how to create a 2nd branch in it.
> Maybe this is something that only the GIT owner (Alessio) can change ?
> 
> Regards
> Yann

A quick howto, from back of my head.

By the way, what alessio has to do with all this?

# Initialize a new Git repo with upstream sources
mkdir boot-repair
cd boot-repair
tar -xvzf ../boot-repair_<version>.orig.tar.gz
mv boot-repair-<version>/* .
rmdir boot-repair-<version>
git init
git add *
git commit -a -m "Added initial upstream sources v<version>"

# Add the debian dir in a new branch
git checkout -b debian
echo "[DEFAULT]
upstream-branch = master
debian-branch = debian
[git-buildpackage]
export-dir = ../build-area/" >debian/gbp.conf

[ ... add all your files in the debian folder ...]

git add debian
git commit -a -m "Added initial debian folder"

# Now you can build
git-buildpackage

I hope that helps, cheers,

Thomas



Reply to: