This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
wiki:development:nxlibs-repository [2012/02/28 12:12] morty Some more formatting fixes |
wiki:development:nxlibs-repository [2012/02/28 13:22] morty missing bash |
||
---|---|---|---|
Line 90: | Line 90: | ||
We now import the sources using the [[http:// | We now import the sources using the [[http:// | ||
- | <file bash git-load-dirs.sh> | + | <file bash run-git-load-dirs.sh> |
- | wc=../ | + | # |
- | l=`ls -d nxcomp-*(/ | + | wc=../ |
- | for f in $l; do (cd $wc; git reset --hard ; git clean -dfx); git_load_dirs -w $wc $f; done | + | l=`ls -d nxcomp-*(/ |
+ | for f in $l; do (cd $wc; git reset --hard ; git clean -dfx); git_load_dirs -w $wc $f; done | ||
</ | </ | ||
Line 106: | Line 107: | ||
===== Editing patches using quilt ===== | ===== Editing patches using quilt ===== | ||
==== Configure quilt ==== | ==== Configure quilt ==== | ||
- | add to ~/.bashrc | + | The following configuration options support the usage of quilt. |
- | < | + | |
- | alias dquilt=" | + | |
- | </ | + | |
create ~/ | create ~/ | ||
- | < | + | < |
+ | #!/bin/bash | ||
d=. ; while [ ! -d $d/debian -a `readlink -e $d` != / ]; do d=$d/..; done | d=. ; while [ ! -d $d/debian -a `readlink -e $d` != / ]; do d=$d/..; done | ||
if [ -d $d/debian ] && [ -z $QUILT_PATCHES ]; then | if [ -d $d/debian ] && [ -z $QUILT_PATCHES ]; then | ||
Line 125: | Line 124: | ||
</ | </ | ||
- | ==== modifying | + | Set an alias to use these configuration options. This only appies to Bash and can be added to '' |
+ | <code bash> | ||
+ | alias dquilt="quilt --quiltrc=${HOME}/ | ||
+ | </ | ||
+ | |||
+ | ==== Modifying | ||
get a source tree from git | get a source tree from git | ||
< | < | ||
Line 160: | Line 164: | ||
dquilt push | dquilt push | ||
</ | </ | ||
- | create new patch NUMBER_NXCOMPONENT_DESCRIPTION.full.patch, | + | create new patch ''< |
< | < | ||
dquilt new 203_nxagent_disable-rootless-exit.full.patch | dquilt new 203_nxagent_disable-rootless-exit.full.patch | ||
Line 166: | Line 170: | ||
add files, which you want to patch with | add files, which you want to patch with | ||
< | < | ||
- | dquilt add DATEINAME | + | dquilt add < |
</ | </ | ||
edit files, you want to patch and save the changes | edit files, you want to patch and save the changes |